1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

FTP tests 1206 - 1209: don't expect QUIT

The protocol parts for these tests do not include QUIT simply because
the error is CURLE_OPERATION_TIMEDOUT (28) which is a generic timeout
error without specificly saying for which connection it concerns, and
for timeouts libcurl marks the control channel as "invalid". As this
test case times out for the data connection it could still use the
control channel.
This commit is contained in:
Daniel Stenberg 2011-11-25 22:38:13 +01:00
parent 2d833852f6
commit ac54d27d4b
5 changed files with 28 additions and 12 deletions

View File

@ -7,7 +7,3 @@
592 592
593 593
594 594
1206
1207
1208
1209

View File

@ -36,6 +36,12 @@ FTP PORT and 425 on download
<strippart> <strippart>
s/^EPRT \|1\|(.*)/EPRT \|1\|/ s/^EPRT \|1\|(.*)/EPRT \|1\|/
</strippart> </strippart>
# The protocol part does not include QUIT simply because the error is
# CURLE_OPERATION_TIMEDOUT (28) which is a generic timeout error without
# specificly saying for which connection it concerns, and for timeouts libcurl
# marks the control channel as "invalid". As this test case times out for the
# data connection it could still use the control channel.
<protocol> <protocol>
USER anonymous USER anonymous
PASS ftp@example.com PASS ftp@example.com
@ -44,10 +50,9 @@ EPRT |1|
TYPE I TYPE I
SIZE 1206 SIZE 1206
RETR 1206 RETR 1206
QUIT
</protocol> </protocol>
<errorcode> <errorcode>
19 28
</errorcode> </errorcode>
</verify> </verify>
</testcase> </testcase>

View File

@ -36,6 +36,12 @@ FTP PORT and 421 on download
<strippart> <strippart>
s/^EPRT \|1\|(.*)/EPRT \|1\|/ s/^EPRT \|1\|(.*)/EPRT \|1\|/
</strippart> </strippart>
# The protocol part does not include QUIT simply because the error is
# CURLE_OPERATION_TIMEDOUT (28) which is a generic timeout error without
# specificly saying for which connection it concerns, and for timeouts libcurl
# marks the control channel as "invalid". As this test case times out for the
# data connection it could still use the control channel.
<protocol> <protocol>
USER anonymous USER anonymous
PASS ftp@example.com PASS ftp@example.com
@ -44,10 +50,9 @@ EPRT |1|
TYPE I TYPE I
SIZE 1207 SIZE 1207
RETR 1207 RETR 1207
QUIT
</protocol> </protocol>
<errorcode> <errorcode>
19 28
</errorcode> </errorcode>
</verify> </verify>
</testcase> </testcase>

View File

@ -36,6 +36,12 @@ FTP PORT download, no data conn and no transient negative reply
<strippart> <strippart>
s/^EPRT \|1\|(.*)/EPRT \|1\|/ s/^EPRT \|1\|(.*)/EPRT \|1\|/
</strippart> </strippart>
# The protocol part does not include QUIT simply because the error is
# CURLE_OPERATION_TIMEDOUT (28) which is a generic timeout error without
# specificly saying for which connection it concerns, and for timeouts libcurl
# marks the control channel as "invalid". As this test case times out for the
# data connection it could still use the control channel.
<protocol> <protocol>
USER anonymous USER anonymous
PASS ftp@example.com PASS ftp@example.com
@ -44,10 +50,9 @@ EPRT |1|
TYPE I TYPE I
SIZE 1208 SIZE 1208
RETR 1208 RETR 1208
QUIT
</protocol> </protocol>
<errorcode> <errorcode>
19 28
</errorcode> </errorcode>
</verify> </verify>
</testcase> </testcase>

View File

@ -36,6 +36,12 @@ FTP PORT download, no data conn and no positive preliminary reply
<strippart> <strippart>
s/^EPRT \|1\|(.*)/EPRT \|1\|/ s/^EPRT \|1\|(.*)/EPRT \|1\|/
</strippart> </strippart>
# The protocol part does not include QUIT simply because the error is
# CURLE_OPERATION_TIMEDOUT (28) which is a generic timeout error without
# specificly saying for which connection it concerns, and for timeouts libcurl
# marks the control channel as "invalid". As this test case times out for the
# data connection it could still use the control channel.
<protocol> <protocol>
USER anonymous USER anonymous
PASS ftp@example.com PASS ftp@example.com
@ -44,10 +50,9 @@ EPRT |1|
TYPE I TYPE I
SIZE 1209 SIZE 1209
RETR 1209 RETR 1209
QUIT
</protocol> </protocol>
<errorcode> <errorcode>
19 28
</errorcode> </errorcode>
</verify> </verify>
</testcase> </testcase>