* Increased the size of the backlog queue length passed to accept() and made
authorArt Cancro <ajc@citadel.org>
Wed, 8 Dec 1999 18:25:21 +0000 (18:25 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 8 Dec 1999 18:25:21 +0000 (18:25 +0000)
  it a configuration parameter in webcit.h

webcit/ChangeLog
webcit/webcit.h
webcit/webserver.c

index 3d251dd24be9ac671ab11d2877b02f1058ff37eb..3202f950625764ea92680133a66b1d23d944fcaa 100644 (file)
@@ -1,4 +1,8 @@
 $Log$
+Revision 1.119  1999/12/08 18:25:21  ajc
+* Increased the size of the backlog queue length passed to accept() and made
+  it a configuration parameter in webcit.h
+
 Revision 1.118  1999/12/07 16:09:26  ajc
 * Better (non fireworks display mode) handling of broken HTTP sockets
 
@@ -353,3 +357,4 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
+
index 598d154eae73b52ff7062d55b5a3dd46878c0ea9..66e177df5eb08ce3b95a3770e8bd5e1ec06a0478 100644 (file)
@@ -15,6 +15,7 @@
 #define TARGET                 "webcit01"      /* Target for inline URL's */
 #define HOUSEKEEPING           60              /* Housekeeping frequency */
 #define INITIAL_WORKER_THREADS 5
+#define LISTEN_QUEUE_LENGTH    20              /* listen() backlog queue */
 
 
 /* Room flags (from Citadel) */
index 11ded91e96671c44fb19cad4aaa5209e934a2039..4a478412449e2a0a03eddf7e5390d75372be7fb9 100644 (file)
@@ -273,7 +273,7 @@ int main(int argc, char **argv)
         * exits if it doesn't succeed.
         */
        fprintf(stderr, "Attempting to bind to port %d...\n", port);
-       msock = ig_tcp_server(port, 5);
+       msock = ig_tcp_server(port, LISTEN_QUEUE_LENGTH);
        fprintf(stderr, "Listening on socket %d\n", msock);
        signal(SIGPIPE, SIG_IGN);