mirror of
https://github.com/espressif/esp-lwip.git
synced 2025-08-06 18:23:42 +08:00
tcp_in: Flag the pcb as closing if TCP_EVENT_CLOSED refused
Closes https://github.com/espressif/esp-lwip/issues/18
This commit is contained in:

committed by
David Čermák

parent
9f382dc34d
commit
d050c33133
@ -541,6 +541,10 @@ tcp_input(struct pbuf *p, struct netif *inp)
|
||||
TCP_EVENT_CLOSED(pcb, err);
|
||||
if (err == ERR_ABRT) {
|
||||
goto aborted;
|
||||
#if ESP_LWIP
|
||||
} else if (err == ERR_MEM) {
|
||||
tcp_set_flags(pcb, TF_CLOSEPEND);
|
||||
#endif /* ESP_LWIP */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user