mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-25 02:10:24 +00:00
don't close socket if response is still open
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3447 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
7b39b6c1b6
commit
fcd00abc75
1 changed files with 2 additions and 2 deletions
|
|
@ -888,8 +888,8 @@ class HTTPConnection:
|
|||
self.__state = _CS_IDLE
|
||||
|
||||
if response.will_close:
|
||||
# this effectively passes the connection to the response
|
||||
self.close()
|
||||
# Pass the socket to the response
|
||||
self.sock = None
|
||||
else:
|
||||
# remember this, so we can tell when it is complete
|
||||
self.__response = response
|
||||
|
|
|
|||
Loading…
Reference in a new issue