www-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

www/server/source/linc linc.py


From: Pavel Kharitonov
Subject: www/server/source/linc linc.py
Date: Mon, 29 Jul 2013 12:48:52 +0000

CVSROOT:        /web/www
Module name:    www
Changes by:     Pavel Kharitonov <ineiev>       13/07/29 12:48:52

Modified files:
        server/source/linc: linc.py 

Log message:
        (socket_read): Admit longer headers.

CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/source/linc/linc.py?cvsroot=www&r1=1.18&r2=1.19

Patches:
Index: linc.py
===================================================================
RCS file: /web/www/www/server/source/linc/linc.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- linc.py     29 Jun 2013 07:32:09 -0000      1.18
+++ linc.py     29 Jul 2013 12:48:42 -0000      1.19
@@ -18,7 +18,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-LINC_VERSION = 'LINC 0.14'
+LINC_VERSION = 'LINC 0.15'
 USAGE = \
 '''Usage: %prog [options] [BASE_DIRECTORY]
 Check links in HTML files from BASE_DIRECTORY.'''
@@ -432,10 +432,10 @@
 
 def socket_read (socketfd):
        output = ''
-       max_header_len = 2048
+       max_header_len = 83521
        while output.find('\r\n\r\n') == -1:
                try:
-                       buf = socketfd.recv (max_header_len)
+                       buf = socketfd.recv (2048)
                        output += buf
                        if len (buf) == 0 or len (output) >= max_header_len:
                                break



reply via email to

[Prev in Thread] Current Thread [Next in Thread]