lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip tcp hangup


From: vincent cui
Subject: Re: [lwip-users] lwip tcp hangup
Date: Thu, 1 Sep 2011 07:32:09 +0000

Actually, I find http request is done one by one. New connection will setup 
after old connection closed. 
I wonder to know, how lwIP does mult connection .

锘?Vincent Cui
Sr.Firmware Engineer
Mobile: +8613482482211
Tel: +86 21 34612525x6104
Fax: +86 21 34619770
E-Mail: address@hidden
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 
200233
http://www.enlogic.com

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Simon Goldschmidt
Sent: 2011年9月1日 15:29
To: Mailing list for lwIP users
Subject: Re: [lwip-users] lwip tcp hangup

vincent cui <address@hidden> wrote:
> Does the backlog parameter in lwIP_listen works? 
> It mean the max connection number at same time. Right ?

Here's what the standard says about the backlog parameter:

"The backlog argument provides a hint to the implementation which the 
implementation shall use to limit the number of outstanding connections in 
the socket's listen queue."

To us, this always meant that the backlog is the number of connections that are 
accepted internally (SYN-ACK sent) and not yet received by the application code 
(using accept()).

What you want (number of connections to one port) is a different thing. You'd 
have to implement it manually by either closing the listening port and 
reopening it later or by closing all new connections when your maximum number 
of parallel connections is reached.

Simon
-- 
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!               
Jetzt informieren: http://www.gmx.net/de/go/freephone

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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