From c0b6acfcaaa85234924bea51cd139182e847a1df Mon Sep 17 00:00:00 2001 From: David Cermak Date: Tue, 29 Dec 2020 21:35:25 +0100 Subject: [PATCH] WIP: Flag the pcb as closing if TCP_EVENT_CLOSED refused --- src/core/tcp_in.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 8097bd4..d7083a7 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -541,6 +541,9 @@ tcp_input(struct pbuf *p, struct netif *inp) TCP_EVENT_CLOSED(pcb, err); if (err == ERR_ABRT) { goto aborted; + } else if (err == ERR_MEM) { + tcp_set_flags(pcb, TF_CLOSEPEND); +// goto aborted; } } } -- 2.7.4