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 <rep...@bugs.python.org> <http://bugs.python.org/issue23749> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com