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: narke
Subject: Re: [lwip-devel] tcp_accepted(pcb)
Date: Tue, 17 Apr 2012 00:02:47 +0800

On 16 April 2012 23:58, Cameron Gutman <address@hidden> wrote:
>
> 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

Many thanks!  I will go to fix my code.


-- 
Life is the only flaw in an otherwise perfect nonexistence
    -- Schopenhauer

narke
public key at http://subkeys.pgp.net:11371 (address@hidden)



reply via email to

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