FD_SETSIZE is irrelevant when using poll. So ensuring that the file
descriptor is smaller than FD_SETSIZE in VALID_SOCK, can cause
multi_wait to ignore perfectly valid file descriptors and simply wait
for 1s to avoid hammering the CPU in a busy loop.
I did this
Upgraded from v7.74 to v7.77
I expected the following
I expected no change
curl/libcurl version
operating system
steps to reproduce
Result:
strace snippet:
same strace snippet with
relocated = fcntl(fd, F_DUPFD, FD_SETSIZE - 1)
:The text was updated successfully, but these errors were encountered: