diff options
Diffstat (limited to 'nuttx/net/uip/uip_tcpinput.c')
-rw-r--r-- | nuttx/net/uip/uip_tcpinput.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/nuttx/net/uip/uip_tcpinput.c b/nuttx/net/uip/uip_tcpinput.c index bdeccf4b7..5dc3435cc 100644 --- a/nuttx/net/uip/uip_tcpinput.c +++ b/nuttx/net/uip/uip_tcpinput.c @@ -179,16 +179,18 @@ void uip_tcpinput(struct uip_driver_s *dev) /* The connection structure was successfully allocated. Now see if * there is an application waiting to accept the connection (or at * least queue it it for acceptance). + * + * TCP state machine should move to the ESTABLISHED state only after + * it has received ACK from the host. */ - conn->tcpstateflags = UIP_ESTABLISHED; - conn->crefs = 1; + conn->crefs = 1; if (uip_accept(dev, conn, tmp16) != OK) { /* No, then we have to give the connection back */ - conn->crefs = 0; + conn->crefs = 0; uip_tcpfree(conn); conn = NULL; } |