Skip to content
Snippets Groups Projects
Commit 23aad23e authored by Terence Denning's avatar Terence Denning
Browse files

final

parent 0b7200f9
No related branches found
No related tags found
No related merge requests found
...@@ -76,8 +76,8 @@ typedef enum ...@@ -76,8 +76,8 @@ typedef enum
static bool handle_http_request(int sockfd) static bool handle_http_request(int sockfd)
{ {
// try to read the request // try to read the request
char buff[2049]; char buff[5000];
int n = read(sockfd, buff, 2049); int n = read(sockfd, buff, 5000);
if (n <= 0) if (n <= 0)
{ {
if (n < 0) if (n < 0)
...@@ -322,7 +322,6 @@ static bool handle_http_request(int sockfd) ...@@ -322,7 +322,6 @@ static bool handle_http_request(int sockfd)
} }
} }
insert_substring(buff, user2_current_guesses, 587); insert_substring(buff, user2_current_guesses, 587);
} }
if (write(sockfd, buff, st.st_size) < 0) if (write(sockfd, buff, st.st_size) < 0)
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment