mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-21 13:59:40 +00:00
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) (cherry picked from commit 803141f6100ca8d756928328a262e1dc52daef2d)
This commit is contained in:
parent
70fdff68ce
commit
cffda9f3b7
@ -188,13 +188,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, context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user