yhirose 5 years ago
parent
commit
ab563ff52c
1 changed files with 0 additions and 9 deletions
  1. 0 9
      httplib.h

+ 0 - 9
httplib.h

@@ -1837,15 +1837,6 @@ inline int shutdown_socket(socket_t sock) {
 template <typename Fn>
 template <typename Fn>
 socket_t create_socket(const char *host, int port, Fn fn,
 socket_t create_socket(const char *host, int port, Fn fn,
                        int socket_flags = 0) {
                        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
   // Get address info
   struct addrinfo hints;
   struct addrinfo hints;
   struct addrinfo *result;
   struct addrinfo *result;