Commit edadb701 authored by Denis Bilenko's avatar Denis Bilenko

ssl: do not lose timeout when wrapping a socket

parent f76386ee
...@@ -63,10 +63,6 @@ class SSLSocket(socket): ...@@ -63,10 +63,6 @@ class SSLSocket(socket):
ssl_version=PROTOCOL_SSLv23, ca_certs=None, ssl_version=PROTOCOL_SSLv23, ca_certs=None,
do_handshake_on_connect=True, do_handshake_on_connect=True,
suppress_ragged_eofs=True): suppress_ragged_eofs=True):
try:
sock = sock._sock
except AttributeError:
pass
socket.__init__(self, _sock=sock) socket.__init__(self, _sock=sock)
if certfile and not keyfile: if certfile and not keyfile:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment