cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: non-blocking FTP

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 15 May 2008 08:31:34 +0200 (CEST)

On Wed, 14 May 2008, Jeff Weber wrote:

> libraries: curl-7.18.1, libssh2-0.18,

> If I start the test with no network connection, [and not using DNS names], it
> hangs every time. Here's a backtrace of the hung thread:
>
> (gdb) thread 3
> [Switching to thread 3 (Thread 16386 (LWP 6805))]#0 0x4024e2da in poll ()
> from /lib/libc.so.6
> (gdb) bt
> #0 0x4024e2da in poll () from /lib/libc.so.6
> #1 0x0806c037 in Curl_socket_ready (readfd=-1, writefd=6, timeout_ms=299998)
> at select.c:218
> #2 0x080643ac in waitconnect (sockfd=6, timeout_msec=299998) at connect.c:260

Ouch. It shouldn't wait that blocking in there. It should only wait for 1
second, call the progress callback and then get back to the waiting...

Will you be able to write up a patch?

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-05-15

These mail archives are generated by hypermail.

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

File upload with ASP.NET