]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ftpserver: lower the normal DATA connect timeout to speed up torture tests
authorStefan Eissing <stefan@eissing.org>
Thu, 29 Dec 2022 14:22:17 +0000 (15:22 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 29 Dec 2022 23:13:56 +0000 (00:13 +0100)
- tests/ftpserver.pl blocks when expecting a DATA connection from the
  client.

- the previous 10 seconds were encountered repeatedly in torture tests
  and let to long waits.

- 2 seconds should still be sufficient for current hw, but CI will show.

Closes #10178

tests/ftpserver.pl

index 095e8b76e2a28b39920609eb51689fedfb29bd07..391b5d0498870824511c726685a506bee38618c0 100755 (executable)
@@ -2577,7 +2577,7 @@ sub PASV_ftp {
         local $SIG{ALRM} = sub { die "alarm\n" };
 
         # assume swift operations unless explicitly slow
-        alarm ($datadelay?20:10);
+        alarm ($datadelay?20:2);
 
         # Wait for 'CNCT'
         my $input;