From cb16b2fcd0191f68785b07bca8ae06f58ae5c975 Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Sun, 9 Sep 2018 23:26:11 -0400 Subject: [PATCH] Remove shutdowns --- server/http_server.c | 1 - server/socket_server.c | 1 - 2 files changed, 2 deletions(-) diff --git a/server/http_server.c b/server/http_server.c index 92d929f..c2ef3d7 100644 --- a/server/http_server.c +++ b/server/http_server.c @@ -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); } diff --git a/server/socket_server.c b/server/socket_server.c index f92e972..7d6d265 100644 --- a/server/socket_server.c +++ b/server/socket_server.c @@ -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; }