diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2007-03-23 13:27:15 (GMT) | 
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2007-03-23 13:27:15 (GMT) | 
| commit | 0af338859b86880cdfe0fe5b3abeea8acace33eb (patch) | |
| tree | 290a31a62b4ba320690822f8847a73c32e3eb5a2 /Lib/httplib.py | |
| parent | 2f401d71863eda91b3d46237e0d5b34e5a2725b9 (diff) | |
| download | cpython-0af338859b86880cdfe0fe5b3abeea8acace33eb.zip cpython-0af338859b86880cdfe0fe5b3abeea8acace33eb.tar.gz cpython-0af338859b86880cdfe0fe5b3abeea8acace33eb.tar.bz2  | |
Bug #978833: Revert r50844, as it broke _socketobject.dup.
Will backport.
Diffstat (limited to 'Lib/httplib.py')
| -rw-r--r-- | Lib/httplib.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/httplib.py b/Lib/httplib.py index 4797e03..213d80c 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py @@ -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  | 
