curl-library
Re: [PATCH] ftp: prevent server from hanging on closed data connection
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 4 Nov 2010 19:13:41 +0100 (CET)
Date: Thu, 4 Nov 2010 19:13:41 +0100 (CET)
On Thu, 4 Nov 2010, Kamil Dudka wrote:
> 1) > ABOR
> < 225 ABOR command successful.
>
> 2) > ABOR
> < 226 Since you see this ABOR must've succeeded
>
> 3) > ABOR
> < 226 File send OK.
> < 225 No transfer to ABOR.
>
> 4) > ABOR
> < 426 Failure writing network stream.
> < 225 No transfer to ABOR.
If we truly see the above mentioned 1 and 2 cases, then I can't see any other
alternative than to mark the connection to get closed since I don't see how we
can reliably differentiate between 2 and 3.
And yes, we only use the number from responses - as long as we can - as the
text may vary between implementations.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-11-04