Skip to content

Commit f6cdb6c

Browse files
Revert "lib: don't compare fd to FD_SETSIZE when using poll" (curl/curl@d293bf4) via b3a5e60
Possibly the cause of file descriptor errors when downloading resources. Further investigation pending. This reverts commit curl/curl@d293bf4. This partially reverts commit b3a5e60.
1 parent d3ef49a commit f6cdb6c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

vendor/curl/lib/select.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,7 @@ int tpf_select_libcurl(int maxfds, fd_set* reads, fd_set* writes,
106106
} \
107107
} while(0)
108108
#else
109-
#ifdef HAVE_POLL_FINE
110-
#define VALID_SOCK(s) ((s) >= 0) /* FD_SETSIZE is irrelevant for poll */
111-
#else
112109
#define VALID_SOCK(s) (((s) >= 0) && ((s) < FD_SETSIZE))
113-
#endif
114110
#define VERIFY_SOCK(x) do { \
115111
if(!VALID_SOCK(x)) { \
116112
SET_SOCKERRNO(EINVAL); \

0 commit comments

Comments
 (0)