]> git.pld-linux.org Git - packages/fcgi.git/commitdiff
- allow larger listen() backlog
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 3 Dec 2005 14:37:23 +0000 (14:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    fcgi-listen-backlog.patch -> 1.1

fcgi-listen-backlog.patch [new file with mode: 0644]

diff --git a/fcgi-listen-backlog.patch b/fcgi-listen-backlog.patch
new file mode 100644 (file)
index 0000000..4c9443f
--- /dev/null
@@ -0,0 +1,24 @@
+This patch allows compile time define for listen backlog.
+Defaults to previous behaviour: 5
+
+--- fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c~    2001-09-01 03:14:28.000000000 +0200
++++ fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c     2005-05-09 18:09:17.000000000 +0300
+@@ -52,6 +52,9 @@
+ #include "fastcgi.h"
+ #include "fcgios.h"
++#ifndef LISTEN_BACKLOG
++#define LISTEN_BACKLOG 5
++#endif
+ static int wsReadPending = 0;
+ static int fcgiReadPending = 0;
+@@ -514,7 +517,7 @@
+     int listenFd, i;
+     /* @@@ Should be able to pick up the backlog as an arg */
+-    if((listenFd = OS_CreateLocalIpcFd(bindPath, 5)) == -1) {
++    if((listenFd = OS_CreateLocalIpcFd(bindPath, LISTEN_BACKLOG)) == -1) {
+         exit(OS_Errno);
+     }
This page took 0.072061 seconds and 4 git commands to generate.