summaryrefslogtreecommitdiffstats
path: root/httpd/cgi-bin/check
diff options
context:
space:
mode:
Diffstat (limited to 'httpd/cgi-bin/check')
-rwxr-xr-xhttpd/cgi-bin/check11
1 files changed, 9 insertions, 2 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index 0c9cf35..1ced5f3 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.745 2009-12-05 10:22:04 ville Exp $
+# $Id: check,v 1.746 2009-12-10 19:28:13 ville Exp $
#
# We need Perl 5.8.0+.
@@ -197,7 +197,7 @@ EOF
#
# Strings
- $VERSION = q$Revision: 1.745 $;
+ $VERSION = q$Revision: 1.746 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
# Read friendly error message file
@@ -3560,6 +3560,13 @@ sub new
'Accept-Encoding' => scalar HTTP::Message::decodable())
if (!$File->{Opt}->{Debug} && HTTP::Message->can('decodable'));
+ # Our timeout should be set to something lower than the web server's,
+ # remembering to give some head room for the actual validation to take
+ # place after the document has been fetched (something like 15 seconds
+ # should be plenty). validator.w3.org instances have their timeout set
+ # to 60 seconds as of writing this (#4985, #6950).
+ $self->timeout(45);
+
return $self;
}