Welcome! Log In Create A New Profile

Advanced

why nginx just use 511 for listen backlog

September 29, 2009 11:32AM
I found that :
[code]
#define NGX_LISTEN_BACKLOG 511
[/code]
and use it as the backlog of listen()
[code]
ls[i].backlog = NGX_LISTEN_BACKLOG;
if (listen(s, ls[i].backlog) == -1) {
[/code]
Does it mean that only 511 connection could be accept at the same time ?
May I modify it to 1024 or higher( I am sure use it less than SOMAXCONN )
SubjectAuthorPosted

why nginx just use 511 for listen backlog

zhijianpengSeptember 29, 2009 11:32AM

Re: why nginx just use 511 for listen backlog

Igor SysoevSeptember 29, 2009 11:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 80
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready