[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #49684] lwip_netconn_do_writemore(): non-blocking ERR_
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [bug #49684] lwip_netconn_do_writemore(): non-blocking ERR_MEM treated as failure |
Date: |
Sat, 17 Dec 2016 20:38:18 -0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36 |
Follow-up Comment #1, bug #49684 (project lwip):
The idea is good. I think we've had it before, but saw this problem:
ERR_MEM is a global problem (e.g. heap is empty). So you would have to mark
*all* netconns in this state as writable again when there is memory to consume
(if it was the heap, maybe it was "out of struct tcp_seg" in that pool, or out
of PBUF_REF for the nocopy case).
It might be marked as writable with the next call to poll_tcp() though, maybe
that's enough?
Keeping that aside, the patch should be good I think (i.e. it should handle
snd_buf/snd_queuelen limitations correctly).
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?49684>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #49684] lwip_netconn_do_writemore(): non-blocking ERR_MEM treated as failure,
Simon Goldschmidt <=