From 881701069afd240ee3212a72180fcc498f8dc910 Mon Sep 17 00:00:00 2001 From: sashan Date: Thu, 11 Aug 2022 02:08:28 +0200 Subject: [PATCH] we need to add a delay at least 5 second (we add 6 secs to get margin). I believe it may take up to 5 second for server to detect command connection got closed while data were in fly. In this period number of running instances is not dropped, therefore new client can not connect (when MaxInstances is set to 1). --- tests/t/lib/ProFTPD/Tests/Commands/RETR.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/t/lib/ProFTPD/Tests/Commands/RETR.pm b/tests/t/lib/ProFTPD/Tests/Commands/RETR.pm index 1eb7070b89..e62d6c50a8 100644 --- a/tests/t/lib/ProFTPD/Tests/Commands/RETR.pm +++ b/tests/t/lib/ProFTPD/Tests/Commands/RETR.pm @@ -2575,6 +2575,7 @@ sub retr_bug3496 { # Close the _control_ connection immediately $client->{ftp}->close(); + sleep(6); my $client2 = ProFTPD::TestSuite::FTP->new('127.0.0.1', $port, 1, 1); $client2->login($setup->{user}, $setup->{passwd});