mirror of
https://github.com/curl/curl.git
synced 2024-12-21 06:50:10 +08: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
55 lines
610 B
Plaintext
55 lines
610 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
FTP
|
|
EPSV
|
|
RETR
|
|
Range
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
0123456789abcdef
|
|
0123456789abcdef
|
|
0123456789abcdef
|
|
0123456789abcdef
|
|
</data>
|
|
<datacheck nonewline="yes">
|
|
0123456789abc
|
|
</datacheck>
|
|
<size>
|
|
64
|
|
</size>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
ftp
|
|
</server>
|
|
<name>
|
|
FTP retrieve a byte-range
|
|
</name>
|
|
<command>
|
|
-r 4-16 ftp://%HOSTIP:%FTPPORT/135
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
USER anonymous
|
|
PASS ftp@example.com
|
|
PWD
|
|
EPSV
|
|
TYPE I
|
|
SIZE 135
|
|
REST 4
|
|
RETR 135
|
|
ABOR
|
|
QUIT
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|