[issue34747] SSLSocket.context cannot be changed on non-connected sockets

Vincent Pelletier report at bugs.python.org
Mon Oct 15 05:31:06 EDT 2018


Vincent Pelletier <vincent at nexedi.com> added the comment:

The reason which led me into this is server certificate renewal: my service crashed on that setter 2 months after starting, when it received a new certificate.

I toyed with the idea of closing the listening sockets, but without closing would be even better - code changing socket certificate is much simpler than having to stop all worker treads (SocketServer.ThreadingMixIn), close the listening sockets, and start them all again in new threads with a new wrap_socket'ed listening socket.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34747>
_______________________________________


More information about the Python-bugs-list mailing list