cURL / Mailing Lists / curl-library / Single Mail


Re: Is there a counterpart of curl_multi_fdset to UNset fd's?

From: Rich Gray <>
Date: Wed, 09 Jul 2014 10:04:11 -0400

Daniel Stenberg wrote:
> On Tue, 8 Jul 2014, Federico Vitali wrote:
>> Ok perhaps I've understood, I apologize for my request. It the select
>> function itself that unsets filedescriptors... Is it correct?
> Please don't top-post and I'm not convinced this is the best place to ask
> about how select() works. But yes, select() will set only the file
> descriptors that had any activity.

But shouldn't one zero and rebuild the fdsets anyway prior to each select()
call? One needs to reestablish fds one is still interested in and ones that
were returned as active by select() may no longer be so.

- Rich
List admin:
Received on 2014-07-09