commit | a8ddae61496de68b3c70d8dab364a204f53c153b | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Fri Mar 23 13:27:29 2007 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Fri Mar 23 13:27:29 2007 +0000 |
tree | 93650713040f6c37a173fd60a34e52889fa5e422 | |
parent | fe048e8ee77bac147bee87c0cddc3c8524d6b7a1 [diff] [blame] |
Bug #978833: Revert r50844, as it broke _socketobject.dup.
diff --git a/Lib/httplib.py b/Lib/httplib.py index 5ae5efc..403e4ee 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py
@@ -926,8 +926,8 @@ 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