link-checker commit: Increase default LWP HTTP line length to 8k; the 4k default in LWP <= 5.832

changeset:   326:774c1cbabd04
user:        ville
date:        Mon Oct 05 15:07:54 2009 +0000
files:       bin/checklink
description:
Increase default LWP HTTP line length to 8k; the 4k default in LWP <= 5.832
is not enough for example to accommodate 4kB cookies (RFC 2985) (#6678).


diff -r f13c866e3468 -r 774c1cbabd04 bin/checklink
--- a/bin/checklink	Sat Oct 03 08:18:01 2009 +0000
+++ b/bin/checklink	Mon Oct 05 15:07:54 2009 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2009 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.166 2009-10-01 16:06:00 ville Exp $
+# $Id: checklink,v 4.167 2009-10-05 15:07:54 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -50,6 +50,14 @@
   @W3C::UserAgent::ISA = qw(LWP::RobotUA);
 } else {
   @W3C::UserAgent::ISA = qw(LWP::UserAgent);
+}
+
+BEGIN
+{
+  # The 4k default line length in LWP <= 5.832 isn't enough for example to
+  # accommodate 4kB cookies (RFC 2985); bump it (#6678).
+  require LWP::Protocol::http;
+  push(@LWP::Protocol::http::EXTRA_SOCK_OPTS, MaxLineLength => 8*1024);
 }
 
 sub new
@@ -275,7 +283,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.5';
   $REVISION    = sprintf('version %s (c) 1999-2009 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.166 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.167 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver,
                          (W3C::UserAgent::USE_ROBOT_UA

Received on Thursday, 5 August 2010 14:47:45 UTC