Re: [Async-sig] Cancelling SSL connection

2017-06-23 Thread Mark E. Haase
Thanks Dima & Nathaniel. I opened an asyncio bug. ( http://bugs.python.org/issue30740) Cheers, Mark On Wed, Jun 21, 2017 at 6:47 PM, Nathaniel Smith wrote: > SSLObject.unwrap has the contract that if it finishes successfully, then > the SSL connection has been cleanly shut down

Re: [Async-sig] Cancelling SSL connection

2017-06-21 Thread Nathaniel Smith
SSLObject.unwrap has the contract that if it finishes successfully, then the SSL connection has been cleanly shut down and both sides remain in sync, and can continue to use the socket in unencrypted mode. When asyncio calls unwrap before the handshake has completed, then this contract is

Re: [Async-sig] Cancelling SSL connection

2017-06-21 Thread Dima Tisnek
Looks like a bug in the `ssl` module, not `asyncio`. Refer to https://github.com/openssl/openssl/issues/710 IMO `ssl` module should be prepared for this. I'd say post a bug to cpython and see what core devs have to say about it :) Please note exact versions of python and openssl ofc. my 2c: