[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #27140] tcp/ip stack hang becouse remains a pbuf_free

From: Kieran Mansley
Subject: [lwip-devel] [bug #27140] tcp/ip stack hang becouse remains a pbuf_free
Date: Fri, 31 Jul 2009 09:00:13 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20090717 Fedora/3.5.1-1.fc11 Firefox/3.5.1

Update of bug #27140 (project lwip):

             Assigned to: <strong>Invalid User ID</strong> => None           


Follow-up Comment #3:

netconn_write doesn't allocate a pbuf.  

The data to write it passed through the message box to the raw API which will
call do_write()->do_writemore()->tcp_write()->tcp_enqueue() and this will then
create a pbuf if there is space to enqueue the packet. There are a few reasons
why it might not get this far, so make sure that netconn_write isn't returning
an error.

If you're sure it's getting enqueued, then the pbuf would normally be freed
by the stack once the packet has been acknowledged by the other end - see the
call to tcp_seg_free() in tcp_receive().  If you're not getting this
acknowledgement, that could explain why the pbuf is not freed.  


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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