lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #46696] accepts_pending not decreased when TCP_EVENT_A


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #46696] accepts_pending not decreased when TCP_EVENT_ACCEPT returns error
Date: Sun, 06 Mar 2016 17:18:07 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36

Update of bug #46696 (project lwip):

                  Status:                    None => In Progress            
             Assigned to:                    None => goldsimon              
         Planned Release:                         => 1.5.0                  

    _______________________________________________________

Follow-up Comment #13:

I'd be glad to get a better working version of the "accepts_pending"
implementation. The current way of letting the user application keeping track
of the corresponding listen pcb is really bad.

I'd favour an implementation where the stack decreases "accepts_pending"
before calling the "accept" callback and the application has to call API
functions (on the connection pcb) to increase/decrease "accepts_pending" (or a
2nd counter) when connections are put on a queue.

One possible improvement would be to remove the "accept" callback from
non-listening pcbs and giving them a pointer to their listen-pcb instead
(which has the accept callback pointer). Closing a listen-pcb would require
walking all pcb lists, but that could be worth it.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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