mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
FD_SETSIZE is not the upper bound for fd numbers on Windows
This commit is contained in:
+3
-1
@@ -607,7 +607,7 @@ MHD_accept_connection (struct MHD_Daemon *daemon)
|
||||
}
|
||||
return MHD_NO;
|
||||
}
|
||||
#ifndef MINGW
|
||||
#ifndef WINDOWS
|
||||
if (s >= FD_SETSIZE)
|
||||
{
|
||||
#if HAVE_MESSAGES
|
||||
@@ -1238,6 +1238,7 @@ MHD_start_daemon_va (unsigned int options,
|
||||
free (retVal);
|
||||
return NULL;
|
||||
}
|
||||
#ifndef WINDOWS
|
||||
if (socket_fd >= FD_SETSIZE)
|
||||
{
|
||||
#if HAVE_MESSAGES
|
||||
@@ -1251,6 +1252,7 @@ MHD_start_daemon_va (unsigned int options,
|
||||
free (retVal);
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
if ((SETSOCKOPT (socket_fd,
|
||||
SOL_SOCKET,
|
||||
SO_REUSEADDR,
|
||||
|
||||
Reference in New Issue
Block a user