How to use asyncore with SSL?
Marko Rauhamaa
marko at pacujo.net
Sat Jan 20 12:10:07 EST 2018
Grant Edwards <grant.b.edwards at gmail.com>:
> Asyncore seems to be based on fundamental assumptions that aren't true
> for non-blocking ssl sockets.
Pot calling kettle black.
OpenSSL isn't the easiest beast to deal with, but I have been able to
abstract it (in C) so it behaves very close to TCP. The one blemish is
in the fact that the TLS protocol does not support a half-duplex
connection. Shame.
The WANT_READ/WANT_WRITE silliness should be abstracted out of the
non-blocking TLS library so the application doesn't need to know
anything about it.
Marko
More information about the Python-list
mailing list