mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Close socket request will abort tcp write/connect
When tcp write/connect is running, close socket request will abort it and continue to delete netconn and close tcp. Do not immediately return after aborting tcp write/connect. Otherwise, tcp close requeset will block and tcp write/connect will crash.
This commit is contained in:
parent
6f339ff7a5
commit
27c28eb1e6
@ -1085,12 +1085,6 @@ lwip_netconn_do_delconn(void *m)
|
||||
} else
|
||||
#endif /* LWIP_NETCONN_FULLDUPLEX */
|
||||
{
|
||||
if (!(state != NETCONN_CONNECT || IN_NONBLOCKING_CONNECT(msg->conn))) {
|
||||
msg->err = ERR_INPROGRESS;
|
||||
NETCONN_SET_SAFE_ERR(msg->conn, ERR_INPROGRESS);
|
||||
LWIP_DEBUGF(API_MSG_DEBUG, ("netconn error:ERR_INPROGRESS\n"));
|
||||
return;
|
||||
}
|
||||
/* Drain and delete mboxes */
|
||||
netconn_drain(msg->conn);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user