cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_fdset() and select()

From: Armel Asselin <asselin.armel_at_wanadoo.fr>
Date: Sat, 9 Sep 2006 20:05:58 +0200

> All (or most?) of the test/libtest/lib*.c programs calling these two
> function on Win32, will fail in the first select() since ...
>
> On the first return from curl_multi_fdset(), max_fd would be -1. This
> doesn't
> go well with Winsock; it doesn't like "select (0, ..., &interval)" which
> is equal
> to a sleep(1).
i'm not absolutely sure but I think that Winsock __ignores__ the first
parameter (the Windows fd_set (or so) structure already codes the size of
what is inside)

Armel
Received on 2006-09-09