From 04cc5a66c0e1e8928a3537fee6ae97adfa977aaa Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Mon, 16 Nov 2020 19:00:01 -0600 Subject: p --- P3/server.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.3