[issue23749] asyncio missing wrap_socket (starttls)
Yury Selivanov
report at bugs.python.org
Mon Oct 26 16:22:13 EDT 2015
Yury Selivanov added the comment:
Here's an example client implementation with writer.start_tls() (taken from my debug code):
@asyncio.coroutine
def client(addr):
reader, writer = yield from asyncio.open_connection(
*addr, loop=loop)
print("CLIENT: ", (yield from reader.readexactly(4)))
writer.write(b'ehlo')
yield from writer.start_tls(sslctx)
# encrypted channel from this point
print("CLIENT: ", (yield from reader.readexactly(4)))
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23749>
_______________________________________
More information about the Python-bugs-list
mailing list