mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Issue #8524: When creating an SSL socket, the timeout value of the
original socket wasn't retained (instead, a socket with a positive timeout would be turned into a non-blocking SSL socket).
This commit is contained in:
parent
d3f8ab8bd3
commit
40f0874b55
3 changed files with 23 additions and 11 deletions
|
@ -102,6 +102,7 @@ class SSLSocket(socket):
|
|||
type=sock.type,
|
||||
proto=sock.proto,
|
||||
fileno=_dup(sock.fileno()))
|
||||
self.settimeout(sock.gettimeout())
|
||||
sock.close()
|
||||
elif fileno is not None:
|
||||
socket.__init__(self, fileno=fileno)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue