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 11:06:43 +0100

On Thursday 28 October 2010 23:48:12 Daniel Stenberg wrote:
> On Wed, 27 Oct 2010, Kamil Dudka wrote:
> > Some FTP servers (e.g. Pure-ftpd) end up hanging if we close the data
> > connection before transferring all the requested data. If we send ABOR
> > in that case, it prevents the server from hanging.
>
> I think this change is safe and harmless for servers.

Unfortunately, it does not solve the problem with all servers. We have
yet another bug open for the issue:

https://bugzilla.redhat.com/649347

Daniel, could you please have a look at the following trace?

$ curl -s 'https://bugzilla.redhat.com/attachment.cgi?id=457738' \
    | grep ' FTP '

Is it a server problem? Or undefined behavior caused by curl closing
the data connection prematurely?

Thanks in advance!

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