Skip to content

Commit

Permalink
Update server.c
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchen1991 authored Apr 12, 2019
1 parent e68b6f0 commit bcc5a37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ void handle_http_request(int fd, struct cache *cache)
// IMPLEMENT ME! //
///////////////////

// Read the three components of the first request line

// Read the first two components of the first line of the request
// If GET, handle the get endpoints

// Check if it's /d20 and handle that special case
Expand Down Expand Up @@ -191,8 +191,8 @@ int main(void)
printf("webserver: waiting for connections on port %s...\n", PORT);

// This is the main loop that accepts incoming connections and
// forks a handler process to take care of it. The main parent
// process then goes back to waiting for new connections.
// responds to the request. The main parent process
// then goes back to waiting for new connections.

while(1) {
socklen_t sin_size = sizeof their_addr;
Expand Down

0 comments on commit bcc5a37

Please sign in to comment.