From 8e079d73d9afade98c82273ed535c69c24e028d8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 25 Sep 2019 07:39:49 -0600 Subject: [PATCH] Update a comment. --- net/inet/inet_close.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/net/inet/inet_close.c b/net/inet/inet_close.c index a36b6bfdcc..417591c142 100644 --- a/net/inet/inet_close.c +++ b/net/inet/inet_close.c @@ -132,6 +132,12 @@ static uint16_t tcp_close_eventhandler(FAR struct net_driver_s *dev, * close completed. TCP_TIMEDOUT is not expected in this context. * Non-standard return values are used to indicate these anomalous * cases. + * + * NOTE: In the TCP_CLOSE case, the event is sent when the remote + * ACKs then outgoing FIN in the FIN_WAIT_1 state. That is the + * appropriate time for the application to close the socket. The + * underlying connection, however, will persist, waiting for the FIN + * to be returned by the remote in the TIME_WAIT state. */ if ((flags & NETDEV_DOWN) != 0)