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:
calvin 2006-09-15 20:19:03 +00:00
parent 7b39b6c1b6
commit fcd00abc75

View file

@ -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