Use constant value 1 instead of SHUT_WR in do_server Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5072)
diff --git a/apps/s_socket.c b/apps/s_socket.c index 2f3e90b..246153a 100644 --- a/apps/s_socket.c +++ b/apps/s_socket.c
@@ -231,13 +231,7 @@ * and then closing the socket sends TCP-FIN first followed by * TCP-RST. This seems to allow the peer to read the alert data. */ -#ifdef _WIN32 -# ifdef SD_SEND - shutdown(sock, SD_SEND); -# endif -#elif defined(SHUT_WR) - shutdown(sock, SHUT_WR); -#endif + shutdown(sock, 1); /* SHUT_WR */ BIO_closesocket(sock); } else { i = (*cb)(asock, type, protocol, context);