cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH] ftp: close connection as soon as ABOR has been sent

From: Kamil Dudka <kdudka_at_redhat.com>
Date: Thu, 4 Nov 2010 22:07:17 +0100

On Thursday 04 November 2010 21:44:11 Daniel Stenberg wrote:
> Yes: The original bug report was about a server getting "stuck" if we
> didn't send ABOR, so theoretically it still hangs on the connection if we
> just close it. So sending ABOR is the nice thing to do to the server.
>
> No: That occasional hang will not bother us somce we just proceed and close
> down the entire thing anyway without trying to read anything further from
> the command connection.
>
> As we now send ABOR my only concern is if there's another case that we
> haven't yet thought of or ran into that makes sending it a bad idea, as
> otherwise I think sending it makes sense.

Daniel, would the attached patch be acceptable from your point of view?

Simon, I'll prepare a new updates image for Anaconda if you are willing
to test it.

Kamil

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

Received on 2010-11-04