Remove shutdowns
parent
90e333a892
commit
cb16b2fcd0
|
@ -22,6 +22,5 @@ int main(int argc, char* argv[]) {
|
|||
printf("%s\n", strerror(errno));
|
||||
}
|
||||
serve_one_request(info.sock_fd);
|
||||
shutdown(info.sock_fd, SHUT_RDWR);
|
||||
close(info.sock_fd);
|
||||
}
|
||||
|
|
|
@ -220,7 +220,6 @@ enum socket_result serve_one_request(int sock_fd) {
|
|||
if (message.headers != NULL) {
|
||||
free_headers(message.headers);
|
||||
}
|
||||
shutdown(client_fd, SHUT_RDWR);
|
||||
close(client_fd);
|
||||
return RESULT_PROCESSING_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue