Bug #978833: Revert r50844, as it broke _socketobject.dup.

Will backport.
This commit is contained in:
Martin v. Löwis 2007-03-23 13:27:15 +00:00
parent 2f401d7186
commit 0af338859b
3 changed files with 4 additions and 5 deletions

View file

@ -948,8 +948,8 @@ class HTTPConnection:
self.__state = _CS_IDLE
if response.will_close:
# Pass the socket to the response
self.sock = None
# this effectively passes the connection to the response
self.close()
else:
# remember this, so we can tell when it is complete
self.__response = response