1998-12-10 Nathan Bryant <bryant@cs.usm.maine.edu>
* context_loop.c: really fix the SO_LINGER stuff
+ * webserver.c: remove commented-out references to SO_LINGER
Wed Dec 9 18:50:46 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
* context_loop.c: After fork(), child process closes the HTTP socket
pthread_attr_t attr; /* Thread attributes */
int a, i; /* General-purpose variables */
int port = PORT_NUM; /* Port to listen on */
- /*struct linger WebLinger = { 1, 9000 };*/
/* Parse command line */
while ((a = getopt(argc, argv, "hp:")) != EOF)
i = 1;
setsockopt(ssock, SOL_SOCKET, SO_REUSEADDR,
&i, sizeof(i));
-/* setsockopt(ssock, SOL_SOCKET, SO_LINGER,
- &WebLinger, sizeof(struct linger));*/
/* set attributes for the new thread */
pthread_attr_init(&attr);