[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: Gecko/20071025 Firefox/

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:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]