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