summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorville <ville@localhost>2009-12-10 19:28:13 +0000
committerville <ville@localhost>2009-12-10 19:28:13 +0000
commit22b314f243f971ffe45fede34f75a2671cbbd33d (patch)
treed34a8405c3ccf08ab9e336b9f9a1320fa436209c
parent013ca23ac1cc27a712205a2b68d8a5fc672e26ff (diff)
downloadmarkup-validator-22b314f243f971ffe45fede34f75a2671cbbd33d.zip
markup-validator-22b314f243f971ffe45fede34f75a2671cbbd33d.tar.gz
markup-validator-22b314f243f971ffe45fede34f75a2671cbbd33d.tar.bz2
Lower user agent inactivity timeout to 45 seconds (#6950).
-rwxr-xr-xhtdocs/whatsnew.html10
-rwxr-xr-xhttpd/cgi-bin/check11
2 files changed, 17 insertions, 4 deletions
diff --git a/htdocs/whatsnew.html b/htdocs/whatsnew.html
index a70ff70..9fd8dd8 100755
--- a/htdocs/whatsnew.html
+++ b/htdocs/whatsnew.html
@@ -1,5 +1,5 @@
-<!--#set var="revision" value="\$Id: whatsnew.html,v 1.89 2009-12-05 10:24:20 ville Exp $"
---><!--#set var="date" value="\$Date: 2009-12-05 10:24:20 $"
+<!--#set var="revision" value="\$Id: whatsnew.html,v 1.90 2009-12-10 19:28:13 ville Exp $"
+--><!--#set var="date" value="\$Date: 2009-12-10 19:28:13 $"
--><!--#set var="title" value="What's New at The W3C Markup Validation Service"
--><!--#set var="relroot" value="./"
--><!--#set var="feeds" value="1"
@@ -89,6 +89,12 @@
1.0 (20091029 Working Draft)</a>.
</li>
<li>
+ Enhancement: the inactivity timeout when retrieving documents has
+ been
+ <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=6950">lowered
+ to 45 seconds</a>.
+ </li>
+ <li>
Bug fix:
<a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=5132">full
document doctype was incorrectly in effect</a> when validating
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;
}