* $Id$
*/
+#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
#include <pthread.h>
#include "webcit.h"
+#include "webserver.h"
/*
* We keep one of these around for each active session
}
} while (strlen(buf) > 0);
- printf(" Reading %d bytes of content\n");
+ printf(" Reading %d bytes of content\n", ContentLength);
while(ContentLength--) {
read(TheSession->outpipe[0], buf, 1);
write(sock, buf, 1);
/*
* The thread handling this HTTP connection is now finished.
*/
- pthread_exit(NULL);
+ return NULL;
}