diff options
author | Daniel Stenberg <daniel@haxx.se> | 2012-11-04 18:22:48 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-11-04 19:05:39 +0100 |
commit | b2954e66e87be7414a4508f8167ca531e653bea8 (patch) | |
tree | f7efa072bdae808c52f7bded50d1a75cde2df82f /tests/data/test592 | |
parent | 7c0f201075029a7c87c5cfe84f0405bb08441fbf (diff) | |
download | curl-b2954e66e87be7414a4508f8167ca531e653bea8.tar.gz |
FTP: prevent the multi interface from blocking
As pointed out in Bug report #3579064, curl_multi_perform() would
wrongly use a blocking mechanism internally for some commands which
could lead to for example a very long block if the LIST response never
showed.
The solution was to make sure to properly continue to use the multi
interface non-blocking state machine.
The new test 1501 verifies the fix.
Bug: http://curl.haxx.se/bug/view.cgi?id=3579064
Reported by: Guido Berhoerster
Diffstat (limited to 'tests/data/test592')
-rw-r--r-- | tests/data/test592 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/data/test592 b/tests/data/test592 index 487290dd4..23aa6c465 100644 --- a/tests/data/test592 +++ b/tests/data/test592 @@ -52,6 +52,7 @@ Moooooooooooo for 592 s/^PORT (.*)/PORT/ s/^EPRT \|1\|(.*)/EPRT \|1\|/ </strippart> +# a 421 response must prevent further commands from being sent <protocol> USER anonymous
PASS ftp@example.com
@@ -61,10 +62,10 @@ EPRT |1| PORT TYPE I
STOR 592
-QUIT
</protocol> +# 28 == CURLE_OPERATION_TIMEDOUT <errorcode> -10 +28 </errorcode> <upload> </upload> |