aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--P3/server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/P3/server.c b/P3/server.c
index 93c28ed..af7db8d 100644
--- a/P3/server.c
+++ b/P3/server.c
@@ -28,6 +28,7 @@
typedef struct request_queue {
int fd;
char *request;
+ request_t next;
} request_t;
typedef struct cache_entry {
@@ -36,6 +37,8 @@ typedef struct cache_entry {
char *content;
} cache_entry_t;
+request_t queue;
+
/* ******************** Dynamic Pool Code [Extra Credit A] **********************/
// Extra Credit: This function implements the policy to change the worker thread pool dynamically
// depending on the number of requests
@@ -258,7 +261,6 @@ int main(int argc, char **argv) {
printf("SIGINT caught, exiting now.\n");
// Print the number of pending requests in the request queue
/*TODO*/
- //Kill all dispatch and worker threads
// close log file
if (fclose(logfile) != 0) {
perror("fclose error");