lwip-devel
[Top][All Lists]
Advanced

[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:1.9.1.1) 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:

  <http://savannah.nongnu.org/bugs/?27140>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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