From 7c08432a706bdfd402fd7ba4cc85105a4565de77 Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Fri, 22 May 2026 20:16:56 +0300 Subject: [PATCH] do not use FD_SETSIZE on Windows --- src/common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common.c b/src/common.c index c0ab945..593d455 100644 --- a/src/common.c +++ b/src/common.c @@ -255,7 +255,9 @@ int FD_ZERO(&writefd); FD_ZERO(&oobfd); for(i=0; i= FD_SETSIZE) continue; +#endif if((fds[i].events&POLLIN))FD_SET(fds[i].fd, &readfd); if((fds[i].events&POLLOUT))FD_SET(fds[i].fd, &writefd); if((fds[i].events&POLLPRI))FD_SET(fds[i].fd, &oobfd); @@ -264,7 +266,9 @@ int } if((num = select(((int)(maxfd))+1, &readfd, &writefd, &oobfd, &tv)) < 1) return num; for(i=0; i= FD_SETSIZE) continue; +#endif if(FD_ISSET(fds[i].fd, &readfd)) fds[i].revents |= POLLIN; if(FD_ISSET(fds[i].fd, &writefd)) fds[i].revents |= POLLOUT; if(FD_ISSET(fds[i].fd, &oobfd)) fds[i].revents |= POLLPRI;