[PATCH] wininet/tests: Skip some FTP tests when no connection can be made.

Sven Baars sven.wine at gmail.com
Fri Nov 8 04:42:32 CST 2019


On 25-10-19 01:15, Francois Gouget wrote:
> On Thu, 24 Oct 2019, Sven Baars wrote:
> 
>> Signed-off-by: Sven Baars <sven.wine at gmail.com>
>> ---
>> This happens quite often, see
>>
>> https://test.winehq.org/data/tests/wininet:ftp.html
> 
> I suspect this is because the VM is getting banned (fail2ban) after it 
> has made too many failed connection attempts:
> 
> while wget -O/dev/null ftp://anonymous:[email protected]/;do wget -O/dev/null ftp://foo:[email protected]/;done
> 
> 
> Probably a single run is fine because it stays under the limit. But when 
> WineTest is run multiple times on the same VM (hence same IP address) in 
> different configurations (particularly w8/w8adm or the various w1064 
> variants) the failed attempts could add up resulting in a ban. 
> 
> Furthermore this would be pretty dependent on how much time passed 
> between the wininet:ftp runs. It takes between 18 and 30 minutes to run 
> WineTest so if the failed attempt counter is reset after 20 minutes (or 
> if the ban did not expire yet) we'd see a pretty random behavior.
> 
> That may justify skipping but then we should add a comment if this 
> explanation is indeed correct.
> 
> Or maybe the ftp.winehq.org configuration should be changed, but only 
> Newman can say if it's ok security-wise.
> 

I appear to have been perma banned from the ftp server for running that
while loop while trying to create a similar workaround for the
urlmon:protocol tests (which time out because of this). Isn't it
possible to just have a dummy ftp server that doesn't ban anyone?

Best,
Sven



More information about the wine-devel mailing list