提交 803141f6 编写于 作者: B Bernd Edlinger

Use constant value 1 instead of SHUT_WR in do_server

Reviewed-by: NRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5072)
上级 26ec943e
......@@ -231,13 +231,7 @@ int do_server(int *accept_sock, const char *host, const char *port,
* 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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册