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:
David Cermak
2020-12-29 21:35:25 +01:00
committed by David Čermák
parent 9f382dc34d
commit d050c33133

View File

@ -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 */
}
}
}