mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-19 03:51:07 +00:00
don't restrict socket buffer size
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3430 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
634ff1d15c
commit
9f39498abf
1 changed files with 2 additions and 2 deletions
|
|
@ -271,7 +271,7 @@ class HTTPResponse:
|
|||
# See RFC 2616 sec 19.6 and RFC 1945 sec 6 for details.
|
||||
|
||||
def __init__(self, sock, debuglevel=0, strict=0, method=None):
|
||||
self.fp = sock.makefile('rb', 0)
|
||||
self.fp = sock.makefile('rb')
|
||||
self.debuglevel = debuglevel
|
||||
self.strict = strict
|
||||
self._method = method
|
||||
|
|
@ -1151,7 +1151,7 @@ class HTTP:
|
|||
|
||||
### should we keep this behavior? do people use it?
|
||||
# keep the socket open (as a file), and return it
|
||||
self.file = self._conn.sock.makefile('rb', 0)
|
||||
self.file = self._conn.sock.makefile('rb')
|
||||
|
||||
# close our socket -- we want to restart after any protocol error
|
||||
self.close()
|
||||
|
|
|
|||
Loading…
Reference in a new issue