From ab563ff52c6293511f606bc9e78a6f76b701ccd7 Mon Sep 17 00:00:00 2001 From: yhirose Date: Mon, 25 May 2020 10:38:47 -0400 Subject: [PATCH] Fix #496 --- httplib.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/httplib.h b/httplib.h index 01d3d21..a2d5f09 100644 --- a/httplib.h +++ b/httplib.h @@ -1837,15 +1837,6 @@ inline int shutdown_socket(socket_t sock) { template socket_t create_socket(const char *host, int port, Fn fn, int socket_flags = 0) { -#ifdef _WIN32 -#define SO_SYNCHRONOUS_NONALERT 0x20 -#define SO_OPENTYPE 0x7008 - - int opt = SO_SYNCHRONOUS_NONALERT; - setsockopt(INVALID_SOCKET, SOL_SOCKET, SO_OPENTYPE, (char *)&opt, - sizeof(opt)); -#endif - // Get address info struct addrinfo hints; struct addrinfo *result;