Remove shutdowns

master
Nick Krichevsky 2018-09-09 23:26:11 -04:00
parent 90e333a892
commit cb16b2fcd0
2 changed files with 0 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;
}