From fcd00abc7543fc21e9ee6ac2c9388474ccfa48bc Mon Sep 17 00:00:00 2001 From: calvin Date: Fri, 15 Sep 2006 20:19:03 +0000 Subject: [PATCH] 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 --- linkcheck/httplib2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkcheck/httplib2.py b/linkcheck/httplib2.py index 72f983ba..fe217138 100644 --- a/linkcheck/httplib2.py +++ b/linkcheck/httplib2.py @@ -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