mirror of
https://github.com/python/cpython.git
synced 2025-11-26 21:33:10 +00:00
Bug #978833: Revert r50844, as it broke _socketobject.dup.
This commit is contained in:
parent
fe048e8ee7
commit
a8ddae6149
3 changed files with 4 additions and 5 deletions
|
|
@ -926,8 +926,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue