From: Ken Hornstein Date: Wed, 31 May 2017 18:39:48 +0000 (-0400) Subject: Normalize connection shutdown handling. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/5c8b15d4703e145128f51494ffc496dafd5fe718?ds=sidebyside;hp=5c8b15d4703e145128f51494ffc496dafd5fe718 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. ---