[TOOLS] winegecko.php: Make use of autoselect mirror SourceForge feature.

Jacek Caban jacek at codeweavers.com
Fri Feb 27 04:45:49 CST 2015


This leaves the job of redirecting to mirror to SourceForge, which may
do much better job at this than we do. Our current solution is to
redirect to random mirror known to have Gecko. In our current code,
connection time is bad (it may even feel like it hangs), because we need
an additional request from server script to a mirror to ensure that the
resource is present there. Also, choosing random mirror often causes
pretty bad transfers.

The solution from this patch improves this a lot, according to my
experiments.

The risky part of this patch is that we depend much more on SourceForge.
However, since this is server side thing, we may adjust it and/or
fallback to the old solution whenever we need, so at least we don't risk
permanent breakage if something changes on SourceForge side. Also, I
intentionally do this as a minimal change to the script. Once it proves
to be working well, we may extend it to be used for Mono and do some
clean ups.

Additional advantage of this solution is that we will no longer need to
update the script for each new release.

---
 winegecko.php | 10 ++++++++++
 1 file changed, 10 insertions(+)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winegecko.php-Make-use-of-autoselect-mirror-SourceFo.patch
Type: text/x-patch
Size: 819 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150227/a1467ad4/attachment.bin>


More information about the wine-patches mailing list