cvs: php-master-web /scripts mirror-test

From: Date: Mon, 26 Mar 2007 14:28:25 +0000
Subject: cvs: php-master-web /scripts mirror-test
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-34883@lists.php.net to get a copy of this message
bjori Mon Mar 26 14:28:25 2007 UTC Modified files: /php-master-web/scripts mirror-test Log: If host_has_error() returns true there is something seriously wrong lets disable those mirrors # (Fixes a long outstanding bug where dead mirrors are still listed as active) http://cvs.php.net/viewvc.cgi/php-master-web/scripts/mirror-test?r1=1.81&r2=1.82&diff_format=u Index: php-master-web/scripts/mirror-test diff -u php-master-web/scripts/mirror-test:1.81 php-master-web/scripts/mirror-test:1.82 --- php-master-web/scripts/mirror-test:1.81 Thu Mar 8 15:27:19 2007 +++ php-master-web/scripts/mirror-test Mon Mar 26 14:28:25 2007 @@ -1,5 +1,5 @@ #!/usr/local/bin/php -q -<?php # vim: ft=php +<?php # vim: ft=php et /* Check the state of each mirror site, and store the @@ -103,6 +103,7 @@ // First HTTP request for the mirror-info file $data = $problem = ''; if (host_has_error($host['hostname'], $filename, $data, $problem)) { + $hosts[$index]['lastupdated'] = 0; $hosts[$index]['problem'] = $problem; continue; } @@ -181,6 +182,7 @@ // Second HTTP request, checking for Apache manual alias $data = $problem = ''; if (host_has_error($host['hostname'], '/manual/noalias.txt', $data, $problem)) { + $hosts[$index]['lastupdated'] = 0; $hosts[$index]['problem'] = $problem; continue; }

« previous php.mirrors (#34883) next »