cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1365447 ] curl_multi_fdset: max_fd will contain -1

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 24 Nov 2005 02:35:00 -0800

Bugs item #1365447, was opened at 2005-11-24 11:35
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1365447&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Olaf van der Spek (olafvdspek)
Assigned to: Daniel Stenberg (bagder)
Summary: curl_multi_fdset: max_fd will contain -1

Initial Comment:
Hi,

man select

> n is the highest-numbered descriptor in any of the
three sets, plus 1.

http://curl.haxx.se/libcurl/c/curl_multi_fdset.html

> If no file descriptors are set by libcurl, max_fd
will contain -1 when this function returns.

Shouldn't this be 0 instead of -1?
And wouldn't it be better to use max_fd as in in/out
param so it can be easier used with multiple calls to
curl_multi_fdset?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1365447&group_id=976
Received on 2005-11-24

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET