cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: curl_multi_perform blocking

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 23 Mar 2004 08:27:02 +0100 (CET)

On Mon, 22 Mar 2004 farr_at_metservice.com wrote:

> Unfortunately I cant cant install tcpdump on either the server or any of the
> systems that seem to curl exception problem. I have attached a pcap file
> that shows another strange problem that requires me to retry the same file.

Sorry, but I can't readily inspect pcap files. It would be a lot easier if you
converted it to some kind of textual data.

> The pcap file shows the unsuccessful download of a file ( I got
> CURLE_WRITE_ERROR ). Packet 48 shows Response 226, then Packet 49 shows
> ftp[RST]. Packet 57 Shows a reconnection to the FTP server.

I assume you're talking about the control connection here?

> It looks like the server sent 226 too early ... but that cant be right ...
> can you see what is going on here?

I don't think it sounds like that. When the data transfer is done, which is
signalled by the closure of the data connection, a 226 is sent on the control
connection.

If you use a recent libcurl version, it will then send a QUIT on that same
connection before doing the TCP disconnect.

Also, can you get any details on what libcurl does when it hangs by using
strace or attaching a debugger to the hanging process?

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Received on 2004-03-23