mirror of
https://github.com/apache/nuttx.git
synced 2026-10-23 23:08:44 +00:00
Notify the socket layer if a connection is lost before the monitoring callback has been registered. From Max Holtzberg
This commit is contained in:
parent
e9187d3199
commit
ffdaa6b5c5
2 changed files with 6 additions and 1 deletions
|
|
@ -5742,3 +5742,7 @@
|
|||
* arch/arm/src/sama5/sam_lcd.c wait before modifying register if the LCDC
|
||||
is re-synchronizing (SIF). Use start-up configuration settings from
|
||||
Barebox. They still don't work (2013-10-10).
|
||||
* net/net_monitor.c: Notify the socket layer if a connection is lost
|
||||
before the monitoring callback has been registered. From Max
|
||||
Holtzberg (2013-10-11).
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,8 @@ int net_startmonitor(FAR struct socket *psock)
|
|||
* the monitoring callback.)
|
||||
*/
|
||||
|
||||
if (conn->tcpstateflags == UIP_CLOSED)
|
||||
if (!(conn->tcpstateflags == UIP_ESTABLISHED ||
|
||||
conn->tcpstateflags == UIP_SYN_RCVD))
|
||||
{
|
||||
connection_event(conn, UIP_CLOSE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue