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

Sven Baars sven.wine at gmail.com
Fri Nov 8 06:19:21 CST 2019

On 08-11-19 12:33, Francois Gouget wrote:
> On Fri, 8 Nov 2019, Sven Baars wrote:
> [...]
>>> 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?
> The ban is probably not really permanent, just a few hours. Unless 
> Newman is running a recidive ban to block repeat offenders for days.
> Btw, the wininet:ftp results are much better since Oct 27.
> Btw, fail2ban's recidive rule is pretty nice. On my box it's currently 
> banning 1115 repeat offenders for the next month for playing the 
> guessing game on my ssh server.

I've been banned since Sunday(?) I think. And yes, Alexandre committed
the patch, so the wininet:ftp tests are much better now, but there are
more like urlmon:protocol and urlmon:url. Problem there is that urlmon
doesn't know yet that the connection failed, so I'd have to implement
that somehow to skip the tests (Windows calls ReportResult with
ERROR_FTP_DROPPED, wine doesn't call it at all). But doing that properly
became a bit harder when I got banned.

More information about the wine-devel mailing list