cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] ftp: prevent server from hanging on closed data connection

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Thu, 4 Nov 2010 21:03:27 +0100

On Thursday 04 November 2010 20:50:01 e-mail number.cruncher wrote:
> In order to get something working with Red Hat's anaconda's use of
> curl --range and FTP servers, I think there are two options:
> a) Don't use ABOR at all; download everything. I note that the curl
> manpage suggests that this may be the behaviour anyway with some
> HTTP/1.1 servers

That is something easy to achieve at application level. If there are some
FTP servers that have been working well with curl range downloads, it would
be a bit selfish to disable it globally just because of Anaconda.

> b) Send ABOR, then close session immediately and re-connect for other
> files. I'm not sure why curl maintains a connection to the server in
> such a case; as far as I can tell, the command-line --range option can
> only be used once anyway, and wouldn't be appropriate for multiple
> transfers.

The code we are patching is actually a part of libcurl, which is a library.
curl is only command line tool based on the library. The library provides
so called 'easy' and 'multi' interfaces, which make it possible to gain more
from reused connections. After all anaconda also (indirectly) uses libcurl,
since there is AFAIK no curl tool available on the installation image.

Kamil
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-04