com php-src: increase backlog to the highest value everywhere: sapi/fpm/fpm/fpm_sockets.h sapi/fpm/php-fpm.conf.in

From: Date: Sun, 27 Oct 2013 18:54:47 +0000
Subject: com php-src: increase backlog to the highest value everywhere: sapi/fpm/fpm/fpm_sockets.h sapi/fpm/php-fpm.conf.in
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73811@lists.php.net to get a copy of this message
Commit: 9765763413526d641b98c0a1e40d57b5ba1cceb3 Author: Antony Dovgal <tony2001@php.net> Sun, 27 Oct 2013 22:54:47 +0400 Parents: 70c3a722e2561cb33d408f3c65e58f9468d2f667 Branches: PHP-5.5 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9765763413526d641b98c0a1e40d57b5ba1cceb3 Log: increase backlog to the highest value everywhere It makes no sense to use -1 for *BSD (which is the highest value there) and still use 128 for Linux. Lets raise it right to up the limit and let the people lower it if they think that 3.5Mb is too much for a process. IMO this is better than silently dropping connections. Changed paths: M sapi/fpm/fpm/fpm_sockets.h M sapi/fpm/php-fpm.conf.in Diff: diff --git a/sapi/fpm/fpm/fpm_sockets.h b/sapi/fpm/fpm/fpm_sockets.h index cce5712..121c016 100644 --- a/sapi/fpm/fpm/fpm_sockets.h +++ b/sapi/fpm/fpm/fpm_sockets.h @@ -19,7 +19,7 @@ #if (__FreeBSD__) || (__OpenBSD__) #define FPM_BACKLOG_DEFAULT -1 #else -#define FPM_BACKLOG_DEFAULT 128 +#define FPM_BACKLOG_DEFAULT 65535 #endif enum fpm_address_domain fpm_sockets_domain_from_address(char *addr); diff --git a/sapi/fpm/php-fpm.conf.in b/sapi/fpm/php-fpm.conf..in index af4f2fa..9002a29 100644 --- a/sapi/fpm/php-fpm.conf.in +++ b/sapi/fpm/php-fpm.conf.in @@ -159,8 +159,8 @@ group = @php_fpm_group@ listen = 127.0.0.1:9000 ; Set listen(2) backlog. -; Default Value: 128 (-1 on FreeBSD and OpenBSD) -;listen.backlog = 128 +; Default Value: 65535 (-1 on FreeBSD and OpenBSD) +;listen.backlog = 65535 ; Set permissions for unix socket, if one is used. In Linux, read/write ; permissions must be set in order to allow connections from a web server. Many

« previous php.cvs (#73811) next »