W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Try to avoid server/browser timeouts in summary only mode when the check takes

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:01 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1in-0005gt-HD@blinky.w3.org>
changeset:   103:5d1c605c69df
user:        ville
date:        Tue Oct 12 21:54:11 2004 +0000
files:       bin/checklink
description:
Try to avoid server/browser timeouts in summary only mode when the check takes
a long time.  Should fix http://www.w3.org/Bugs/Public/show_bug.cgi?id=896


diff -r f3ebeb209250 -r 5d1c605c69df bin/checklink
--- a/bin/checklink	Sun Oct 10 21:00:22 2004 +0000
+++ b/bin/checklink	Tue Oct 12 21:54:11 2004 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2004 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.7 2004-10-10 21:00:22 ville Exp $
+# $Id: checklink,v 4.8 2004-10-12 21:54:11 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -112,7 +112,7 @@
   $PACKAGE       = 'W3C Link Checker';
   $PROGRAM       = 'W3C-checklink';
   $VERSION       = '4.0';
-  my ($cvsver)   = q$Revision: 4.7 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver)   = q$Revision: 4.8 $ =~ /(\d+[\d\.]*\.\d+)/;
   $REVISION      = sprintf('version %s [%s] (c) 1999-2004 W3C',
                            $VERSION, $cvsver);
   $AGENT         = sprintf('%s/%s [%s] %s',
@@ -736,7 +736,12 @@
     # Don't check mailto: URI's
     next if ($u =~ m/^mailto:/);
 
-    &hprintf("Checking link %s\n", $u) unless $Opts{Summary_Only};
+    if ($Opts{Summary_Only}) {
+      # Hack: avoid browser/server timeouts in summary only CGI mode, bug 896
+      print ' ' if ($Opts{HTML} && !$Opts{Command_Line});
+    } else {
+      &hprintf("Checking link %s\n", $u);
+    }
 
     # Check that a link is valid
     &check_validity($uri, $u,
Received on Thursday, 5 August 2010 14:47:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:43 UTC