mirror of
https://github.com/curl/curl.git
synced 2026-08-25 18:33:42 +03:00
ftp: prevent server from hanging on closed data connection
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. Bug: https://bugzilla.redhat.com/643656 Reported by: Pasi Karkkainen, Patrick Monnerat
This commit is contained in:
parent
59db31902c
commit
0c8e5f7e6a
6 changed files with 11 additions and 1 deletions
|
|
@ -50,6 +50,7 @@ TYPE I
|
|||
SIZE 1036
|
||||
REST 20
|
||||
RETR 1036
|
||||
ABOR
|
||||
QUIT
|
||||
</protocol>
|
||||
<file name="log/curl1036.out">
|
||||
|
|
|
|||
|
|
@ -45,6 +45,7 @@ TYPE I
|
|||
SIZE 1057
|
||||
REST 52
|
||||
RETR 1057
|
||||
ABOR
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -46,6 +46,7 @@ TYPE I
|
|||
SIZE 110
|
||||
REST 20
|
||||
RETR 110
|
||||
ABOR
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ EPSV
|
|||
PASV
|
||||
TYPE I
|
||||
SIZE 122
|
||||
ABOR
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ TYPE I
|
|||
SIZE 135
|
||||
REST 4
|
||||
RETR 135
|
||||
ABOR
|
||||
QUIT
|
||||
</protocol>
|
||||
</verify>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue