Notify upper layer when TIME_WAIT or FIN_WAIT2_2 timeout occurs
This commit is contained in:
parent
6a5fdf7fe2
commit
0f5865d588
@ -125,6 +125,11 @@ void uip_tcptimer(FAR struct uip_driver_s *dev, FAR struct uip_conn *conn,
|
||||
if (conn->timer >= UIP_TIME_WAIT_TIMEOUT)
|
||||
{
|
||||
conn->tcpstateflags = UIP_CLOSED;
|
||||
|
||||
/* Notify upper layers about the timeout */
|
||||
|
||||
result = uip_tcpcallback(dev, conn, UIP_TIMEDOUT);
|
||||
|
||||
nllvdbg("TCP state: UIP_CLOSED\n");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user