Notify upper layer when TIME_WAIT or FIN_WAIT2_2 timeout occurs

This commit is contained in:
Gregory Nutt 2014-06-02 07:39:29 -06:00
parent 6a5fdf7fe2
commit 0f5865d588

View File

@ -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");
}
}