lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #46685] pcb->accepts_pending is not decreased


From: Joel Cunningham
Subject: [lwip-devel] [bug #46685] pcb->accepts_pending is not decreased
Date: Wed, 06 Jan 2016 15:31:14 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0

Follow-up Comment #2, bug #46685 (project lwip):

I took a look at your original post and what socket/netconn calls are you
performing to accept the connection?  Or are you using the raw API?

I've found a leak of accepts_pending that happens during resource exhaustion
when we fail to establish the connection (see
https://savannah.nongnu.org/bugs/?46696) but I'm not sure if that's what you
are seeing

Your proposed fix changes the behavior of accepts_pending.  The variable is
used to implement a backlog which limits the number of connections outstanding
within the network stack that the application has not yet "accepted".  Your
change is immediately decreasing the backlog value after receiving a segment
destined for a listener, the 3-way handshake may not even be complete at this
point, but further there is no limiting of outstanding connections happening
anymore

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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