[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #7490] Add return value to sys_mbox_post
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [task #7490] Add return value to sys_mbox_post |
Date: |
Sun, 25 Nov 2007 12:19:03 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9 |
Follow-up Comment #2, task #7490 (project lwip):
Just thought this is a rather small change, so could go in to 1.3.0...
Having a size parameter should be good to reduce memory usage of the stack
(UDP mboxes can be smaller than TCP mboxes with a big recv window).
The problem that remains is that tcpip_input() can fail which results in
memory leaks. Of course, this can be solved by a counter also (like SO_RCVBUF)
but that adds code size, too!
On the other hand, solving this with a counter has the advantage that some
space in the mbox is left for application tasks communicating with
tcpip_thread. The mbox being full in that case locks up the stack anyway...
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?7490>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post,
Simon Goldschmidt <=
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/25
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Samuel Thibault, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Jared Grubb, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Samuel Thibault, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Simon Goldschmidt, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Frédéric Bernon, 2007/11/26
- [lwip-devel] [task #7490] Add return value to sys_mbox_post, Jonathan Larmour, 2007/11/26