Module: tools
Branch: master
Commit: c97e300fa50540af4c9b9cea5d17293524320cbd
URL: http://source.winehq.org/git/tools.git/?a=commit;h=c97e300fa50540af4c9b9cea…
Author: Jacek Caban <jacek(a)codeweavers.com>
Date: Fri Feb 27 11:45:49 2015 +0100
winegecko.php: Make use of autoselect mirror SourceForge feature.
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.
---
winegecko.php | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/winegecko.php b/winegecko.php
index fdc1b96..e44b9e3 100644
--- a/winegecko.php
+++ b/winegecko.php
@@ -48,6 +48,16 @@ default:
// Name of the file
$sFileName = sprintf('%s/%s/wine_gecko-%s.%s', $sFolder, $sVersion, $sFileSuffix, $sExt);
+// SourceForge can do better job at redirecting to the mirror than us. However,
+// it redirects to HTML page by default for web browser user agents. New enough
+// Wine set user agent to 'Wine Addon Downloader', so redirect them directly
+// to SourceForge. For older Wine and other user agents, fallback to random
+// known mirror.
+if(strcmp($_SERVER['HTTP_USER_AGENT'], 'Wine Addon Downloader') === 0) {
+ header("Location: http://sourceforge.net/projects/wine/files/".$sFileName);
+ exit;
+}
+
// Size array
$aFileSizes = array(
'0.0.1'=>5219822,
Module: wine
Branch: master
Commit: 48f0f16311260648d16f75e9d50e4e284f09f05a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=48f0f16311260648d16f75e9d…
Author: Andrew Eikum <aeikum(a)codeweavers.com>
Date: Wed Feb 25 14:28:49 2015 -0600
advapi32/tests: Don't test service timeout.
---
dlls/advapi32/tests/service.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index ad81a25..0fc8e3a 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -2267,18 +2267,6 @@ static void test_start_stop(void)
le = try_start_stop(svc_handle, displayname, is_nt4);
ok(le == ERROR_SERVICE_REQUEST_TIMEOUT, "%d != ERROR_SERVICE_REQUEST_TIMEOUT\n", le);
- /* And finally with a service that plays dead, forcing a timeout.
- * This time we will put no quotes. That should work too, even if there are
- * spaces in the path.
- */
- sprintf(cmd, "%s service sleep", selfname);
- displayname = "Winetest Sleep Service";
- ret = ChangeServiceConfigA(svc_handle, SERVICE_NO_CHANGE, SERVICE_NO_CHANGE, SERVICE_NO_CHANGE, cmd, NULL, NULL, NULL, NULL, NULL, displayname);
- ok(ret, "ChangeServiceConfig() failed le=%u\n", GetLastError());
-
- le = try_start_stop(svc_handle, displayname, is_nt4);
- ok(le == ERROR_SERVICE_REQUEST_TIMEOUT, "%d != ERROR_SERVICE_REQUEST_TIMEOUT\n", le);
-
cleanup:
if (svc_handle)
{
@@ -2392,10 +2380,6 @@ START_TEST(service)
GetFullPathNameA(myARGV[0], sizeof(selfname), selfname, NULL);
if (myARGC >= 3)
{
- if (strcmp(myARGV[2], "sleep") == 0)
- /* Cause a service startup timeout */
- Sleep(90000);
- /* then, or if myARGV[2] == "exit", just exit */
return;
}