How to use asyncore with SSL?
Grant Edwards
grant.b.edwards at gmail.com
Sat Jan 20 10:53:31 EST 2018
On 2018-01-18, Grant Edwards <grant.b.edwards at gmail.com> wrote:
[regarding secure-smtpd -- a module based on smtpd and asyncore]
> That makes the SSL support pretty much useless.
>
> I'm trying to fix that, but I can't find any information or
> documentation about using asyncore with SSL.
Asyncore seems to be based on fundamental assumptions that aren't true
for non-blocking ssl sockets. After looking into it for a couple
hours, the way you use ssl with asyncore is like this:
pid = subprocess.Pipe(["stunnel","stunnel.conf"]).pid
# insert asyncore app here
os.kill(pid,signal.SIGTERM)
--
Grant
More information about the Python-list
mailing list