fjpanag commented on PR #6956: URL: https://github.com/apache/incubator-nuttx/pull/6956#issuecomment-1232114674
> If you don't close the socket by self, and unplug the netdev without CONFIG_NETDOWN_NOTIFIER, nobody can notify you. Does the problem disappear without this patch? The socket will soon try to send data and it will fail. This will call `close()`. I have added logs and I monitor the usage of `close()` and `tcp_close_eventhandler()`. I can assure you that when the first one is called the second one may **not** be called. The problem with the stuck thread only happened once, using this patch. I am trying hard, but I haven't found a way to reproduce it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org