validator/httpd/cgi-bin check,1.745,1.746

Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv1471/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Lower user agent inactivity timeout to 45 seconds (#6950).

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.745
retrieving revision 1.746
diff -u -d -r1.745 -r1.746
--- check	5 Dec 2009 10:22:04 -0000	1.745
+++ check	10 Dec 2009 19:28:13 -0000	1.746
@@ -3560,6 +3560,13 @@
         '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;
 }
 

Received on Thursday, 10 December 2009 19:28:24 UTC