]> git.pld-linux.org Git - packages/fcgi.git/blame - fcgi-listen-backlog.patch
- allow larger listen() backlog
[packages/fcgi.git] / fcgi-listen-backlog.patch
CommitLineData
c37770f7
ER
1This patch allows compile time define for listen backlog.
2Defaults to previous behaviour: 5
3
4--- fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c~ 2001-09-01 03:14:28.000000000 +0200
5+++ fcgi-2.4.0/cgi-fcgi/cgi-fcgi.c 2005-05-09 18:09:17.000000000 +0300
6@@ -52,6 +52,9 @@
7 #include "fastcgi.h"
8 #include "fcgios.h"
9
10+#ifndef LISTEN_BACKLOG
11+#define LISTEN_BACKLOG 5
12+#endif
13
14 static int wsReadPending = 0;
15 static int fcgiReadPending = 0;
16@@ -514,7 +517,7 @@
17 int listenFd, i;
18
19 /* @@@ Should be able to pick up the backlog as an arg */
20- if((listenFd = OS_CreateLocalIpcFd(bindPath, 5)) == -1) {
21+ if((listenFd = OS_CreateLocalIpcFd(bindPath, LISTEN_BACKLOG)) == -1) {
22 exit(OS_Errno);
23 }
24
This page took 0.135148 seconds and 4 git commands to generate.