Re: [Twisted-Python] PyOpenSSL empty socket property

2019-09-08 Thread Glyph
Indeed, in Twisted, the SSL.Connection is constructed with a memory BIO. And in fact there may not be a socket in the loop at all! What are you trying to do with `getpeername()`? Hopefully there's a similar Twisted API that you could work with. -glyph > On Sep 5, 2019, at 11:07 PM, Sean DiZaz

Re: [Twisted-Python] PyOpenSSL empty socket property

2019-09-05 Thread Sean DiZazzo
Perhaps this line from OpenSSL.SSL.Connection is a clue. "socket may be None; in this case, the Connection is created with a memory BIO: see the bio_read(), bio_write(), and bio_shutdown() methods." https://www.pyopenssl.org/en/stable/api/ssl.html#OpenSSL.SSL.Connection On Wed, Sep 4, 2019 at 1:3