$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
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
+
#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) */
* 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);