You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/09/13 15:49:41 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #1589: net/tcp: fix tcp socket close timeout if loss wireless connection

xiaoxiang781216 commented on pull request #1589:
URL: https://github.com/apache/incubator-nuttx/pull/1589#issuecomment-691688394


   > I would think that a change like this would re-use the same logic as when the PHY detects a loss of the network in a wired connection as in drivers/net/phy_notify.c.
   
   @patacongo let's the already opened socket could close timely when the wire or wireless network lose the conntection(what's this patch do), which doesn't conflict or block to notify the userspace the connection status change through PHY notificaiton. Actually, the fix is required because the kernel space network stack should work without depending on an optional userspace component.
   On the other hand, the current PHY notification and recovering desgin isn't general enough because it tightly couple with Ethernet MII/GMII definition and make it's hard to work with the wireless case.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org