From bed690a26593992e42c3f36ce406f88b9f3c3095 Mon Sep 17 00:00:00 2001 From: thevindu-w Date: Thu, 20 Jun 2024 21:46:37 +0530 Subject: [PATCH] Fix test failure on Linux --- utils/net_utils.c | 1 - 1 file changed, 1 deletion(-) diff --git a/utils/net_utils.c b/utils/net_utils.c index 4b36e36..ae91e7a 100644 --- a/utils/net_utils.c +++ b/utils/net_utils.c @@ -297,7 +297,6 @@ void close_socket(socket_t *socket) { switch (socket->type) { case PLAIN_SOCK: { #if defined(__linux__) || defined(__APPLE__) - shutdown(socket->socket.plain, SHUT_RD); close(socket->socket.plain); #elif defined(_WIN32) closesocket(socket->socket.plain);