aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-16 19:00:01 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-16 19:00:01 -0600
commit04cc5a66c0e1e8928a3537fee6ae97adfa977aaa (patch)
treedb87b683ac14b418f92d5dc17bc30c251ba94440
parenthelp me (diff)
downloadcsci4061-04cc5a66c0e1e8928a3537fee6ae97adfa977aaa.tar
csci4061-04cc5a66c0e1e8928a3537fee6ae97adfa977aaa.tar.gz
csci4061-04cc5a66c0e1e8928a3537fee6ae97adfa977aaa.tar.bz2
csci4061-04cc5a66c0e1e8928a3537fee6ae97adfa977aaa.tar.lz
csci4061-04cc5a66c0e1e8928a3537fee6ae97adfa977aaa.tar.xz
csci4061-04cc5a66c0e1e8928a3537fee6ae97adfa977aaa.tar.zst
csci4061-04cc5a66c0e1e8928a3537fee6ae97adfa977aaa.zip
p
Diffstat (limited to '')
-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");