On Mon, 6 Sep 2010, Jan de Lint wrote:

libcurl/7.20.1 OpenSSL/0.9.8n zlib/1.2.5

TEXT:       Connecting to 82.95.170.223 (82.95.170.223) port 58082
TEXT:       Timed out

I believe this is due to a bug we've fixed in more recent versions.

When running same in a thread (non-multi) the switch to passive mode works fine.

The multi interface is not threaded...

   curl_multi_timeout(multi_handle, &curl_timeo);
   if(curl_timeo >= 0) {
     timeout.tv_sec = curl_timeo / 1000;
     if(timeout.tv_sec > 1)
       timeout.tv_sec = 1;
     else
       timeout.tv_usec = (curl_timeo % 1000) * 1000;
   }

What exactly is it supposed to do

It makes sure the timeout is always less than 2 seconds.

and how could I tune it?

By chaning the code!

Or should I tune elsewhere?

The above proplem is not related to this timeout at all I think.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to