]> diplodocus.org Git - nmh/commit
Normalize connection shutdown handling.
authorKen Hornstein <kenh@pobox.com>
Wed, 31 May 2017 18:39:48 +0000 (14:39 -0400)
committerKen Hornstein <kenh@pobox.com>
Wed, 31 May 2017 18:39:48 +0000 (14:39 -0400)
commit5c8b15d4703e145128f51494ffc496dafd5fe718
treef4499a68795b5dae45ff72d0d86fea49a5b78501
parent06fff87f275c3577a962537d44c558649285d8e4
Normalize connection shutdown handling.

I originally tried to make things work so that the netsec client code gave
the client the option of closing the file descriptors if it wanted to, but
I was running into a problem where if TLS negotiation failed part of the
negotiation would be interpreted as connection data.  The code has been
changed to have the sockets close when the SSL BIO is released and to
have netsec_shutdown unconditionally close the file descriptors.
h/netsec.h
mts/smtp/smtp.c
sbr/netsec.c
uip/popsbr.c