mirror of
https://github.com/moparisthebest/curl
synced 2024-10-31 23:55:01 -04:00
0c8e5f7e6a
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
53 lines
582 B
Plaintext
53 lines
582 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
EPSV
|
|
RETR
|
|
Range
|
|
</keywords>
|
|
</info>
|
|
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
456789abcdef
|
|
</data>
|
|
<datacheck nonewline="yes">
|
|
456789abcdef
|
|
</datacheck>
|
|
<size>
|
|
64
|
|
</size>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<name>
|
|
FTP retrieve a byte-range relative to end of file
|
|
</name>
|
|
<command>
|
|
-r -12 ftp://%HOSTIP:%FTPPORT/1057
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
EPSV
|
|
TYPE I
|
|
SIZE 1057
|
|
REST 52
|
|
RETR 1057
|
|
ABOR
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|