[issue29394] Cannot tunnel TLS connection through TLS connection
Maximilian Blochberger
report at bugs.python.org
Thu Feb 2 08:37:47 EST 2017
Maximilian Blochberger added the comment:
Okay, I see, thanks for the hint. That worked perfectly – I found `asyncio.sslproto._SSLPipe` very useful for that purpose.
I personally consider the behaviour of `ssl.SSLContext.wrap_socket()` unexpected and would raise an exception if that method call is tried on an instance of `ssl.SSLSocket`. But as this would be a change that could lead to backwards compatibility issues (if developers depend on that behaviour) this is probably not a good idea.
I think that the documentation for `ssl.SSLContext.wrap_socket()` has this behaviour to avoid future confusion – including a hint to make use of `ssl.SSLContext.wrap_bio()` instead.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29394>
_______________________________________
More information about the Python-bugs-list
mailing list