[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #52763] mdns: move data off the stack and dynamically
From: |
Douglas |
Subject: |
[lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data. |
Date: |
Sun, 7 Jan 2018 08:26:25 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 |
Follow-up Comment #16, bug #52763 (project lwip):
Just a small update, fwiw.
* Adds a strndup using mem_malloc. Still does not appear to address all the
concerns and is still optimized for small memory usage.
* Can still use a timeout to queue an announcement but defaults to zero delay.
There seems little practical need for a delay.
One idea that might be food for thought:
* Flush a pending async outpacket before sending or queuing any other packets.
This both keeps them in order wrt state changes and minimizes the resource
usage. Practically I don't see responses with more than one answer, so I
expect they are rare. This strategy will fail if multiple responses are sent
quickly, the delay might not be met, and that might happen if there are both
ipv4 and ipv6 requests. If this is a problem then that queue could be
increased from one, but still the idea would be to keep them in order via the
queue and have a single timeout to flush the queue.
(file #42864)
_______________________________________________________
Additional Item Attachment:
File name: 0001-mdns-move-data-off-the-stack-and-dynamically-allocat.patch
Size:90 KB
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?52763>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data., Douglas, 2018/01/02
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data., Erik Ekman, 2018/01/03
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data., Douglas, 2018/01/03
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data., Simon Goldschmidt, 2018/01/03
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data., Erik Ekman, 2018/01/03
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data., Douglas, 2018/01/03
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data., Douglas, 2018/01/03
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data., Simon Goldschmidt, 2018/01/03
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data., Simon Goldschmidt, 2018/01/04
- [lwip-devel] [bug #52763] mdns: move data off the stack and dynamically allocate data.,
Douglas <=