(self, signum, frame)
Handle SIGTERM
Handle SIGTERM
Handle SIGTERM
def handle_sigterm(self, signum, frame):
        """Handle SIGTERM"""

        self.sock.shutdown(socket.SHUT_RDWR)
        self.sock.close()
        del self.keyfile
def handle_sigterm ( self , signum , frame ) : self . sock . shutdown ( socket . SHUT_RDWR ) self . sock . close ( ) del self . keyfile