Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcp_in: Flag the pcb as closing if TCP_EVENT_CLOSED refused
If the packet contained FIN flag, we post a TCP_EVENT_CLOSE with null pbuf, which could get lost if the underlying platform implementation of sys_mbox_(try)post() returns ERR_MEM (i.e. won't fit into the recv mailbox). Loosing this event causes trouble since the FIN initiator gets ACK'ed and assumes the connection has closed, but the TCP state machine is stuck in its active state. Fixed by flagging the pcb as closing if the ERR_MEM returned. Picked from d050c331 Patch posted https://savannah.nongnu.org/patch/?10013 Ref IDF-4847
- Loading branch information