mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-07-04 20:08:57 +00:00
Fixed a bug in linger-closing when LWIP_TCPIP_CORE_LOCKING==1
This commit is contained in:
parent
7d8657287e
commit
276e35ecfb
|
@ -861,6 +861,7 @@ lwip_netconn_do_close_internal(struct netconn *conn)
|
|||
if (linger_wait_required) {
|
||||
/* wait for ACK of all unsent/unacked data by just getting called again */
|
||||
close_finished = 0;
|
||||
err = ERR_INPROGRESS;
|
||||
}
|
||||
#endif /* LWIP_SO_LINGER */
|
||||
} else {
|
||||
|
@ -944,6 +945,7 @@ lwip_netconn_do_close_internal(struct netconn *conn)
|
|||
}
|
||||
/* If closing didn't succeed, we get called again either
|
||||
from poll_tcp or from sent_tcp */
|
||||
LWIP_ASSERT("err != ERR_OK", err != ERR_OK);
|
||||
return err;
|
||||
}
|
||||
#endif /* LWIP_TCP */
|
||||
|
|
Loading…
Reference in New Issue
Block a user