cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] Re: Problems with curl 7.10.1 and the multi interface

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 18 Oct 2002 17:42:12 +0200 (MET DST)

On Fri, 18 Oct 2002, Fabrizio Ammollo wrote:

> > Regarding the case where libcurl seems to set the fdset waiting for
> > writing too often, can you write me an example program that shows this
> > behavior?
>
> The same program reveals the problem, too.

Ah, your program is not really doing "right". You should FD_ZERO the fdsets
before you let libcurl set them:

Move the block:

  FD_ZERO(&readfds);
  FD_ZERO(&writefds);
  FD_ZERO(&exceptfds);

To just before curl_multi_fdset() and I believe this is not happening
anymore.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-10-18