mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
Notify upper layer when TIME_WAIT or FIN_WAIT2_2 timeout occurs
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user