--- httplib.py 2009-08-04 13:28:16.000000000 +0200 +++ httplib.py 2009-08-21 15:46:06.000000000 +0200 @@ -155,6 +155,8 @@ # maximal amount of data to read at one time in _safe_read MAXAMOUNT = 1048576 +# maximal aumount of data to read at HTTP Status Line +MAXSTATUS = 256 class HTTPMessage(mimetools.Message): @@ -291,7 +293,7 @@ def _read_status(self): # Initialize with Simple-Response defaults - line = self.fp.readline() + line = self.fp.readline(MAXSTATUS) if self.debuglevel > 0: print "reply:", repr(line) if not line: