Commit:    18f45c535b2f466647a82b02b1fd03a4461a0db2
Author:    Arnaud Le Blanc <arnaud...@gmail.com>         Sun, 28 Apr 2013 
16:25:30 +0200
Parents:   27b01cfcd7d26e4c6ae616733fbdae33ecbe494e
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=18f45c535b2f466647a82b02b1fd03a4461a0db2

Log:
Added PHP_FCGI_BACKLOG, overrides the default listen backlog

Changed paths:
  M  sapi/cgi/cgi_main.c


Diff:
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 9e6b74a..4c78fca 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1955,7 +1955,11 @@ consult the installation file that came with this 
distribution, or visit \n\
        }
 
        if (bindpath) {
-               fcgi_fd = fcgi_listen(bindpath, 128);
+               int backlog = 128;
+               if (getenv("PHP_FCGI_BACKLOG")) {
+                       backlog = atoi(getenv("PHP_FCGI_BACKLOG"));
+               }
+               fcgi_fd = fcgi_listen(bindpath, backlog);
                if (fcgi_fd < 0) {
                        fprintf(stderr, "Couldn't create FastCGI listen socket 
on port %s\n", bindpath);
 #ifdef ZTS


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to