lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] tcp_accepted(pcb)


From: Cameron Gutman
Subject: Re: [lwip-devel] tcp_accepted(pcb)
Date: Mon, 16 Apr 2012 11:58:44 -0400

On Apr 16, 2012, at 11:50 AM, narke wrote:

> Hi,
> 
> Should I call the tcp_accepted(pcb) function when my on_accept
> callback was called by lwIP?  My backlog setting is the default value
> 0xff.  What kind of problem will I met if I did not call it?
> 

Our implementation calls tcp_accepted() in the accept callback (remember it's 
the listener
not the new pcb) as per lwIP documentation. It updates the pending connection 
count on the listener.
If you don't call it, the pending connection count will eventually exceed the 
backlog value and the
listener will start dropping connections.

Cameron Gutman
ReactOS Project


reply via email to

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