(self)
Overide Daemon.run() and provide socets
Overide Daemon.run() and provide socets
Overide Daemon . run () and provide socets
def run(self):
        """Overide Daemon.run() and provide socets"""

        try:
            local_thread = threading.Thread(target=self.handle_non_tls,
                                            args=(self.sock,))
            local_thread.start()
            if self.tls_req is False:
                non_tls_thread = threading.Thread(target=self.handle_non_tls,
                                                  args=(self.net_sock,))
                non_tls_thread.start()
            if self.context is not None:
                tls_thread = threading.Thread(target=self.handle_tls)
                tls_thread.start()
        except OSError as err:
            logging.error(err.__str__())
            self.stop()
def run ( self ) : try : local_thread = threading . Thread ( target = self . handle_non_tls , args = ( self . sock , ) ) local_thread . start ( ) if self . tls_req is False : non_tls_thread = threading . Thread ( target = self . handle_non_tls , args = ( self . net_sock , ) ) non_tls_thread . start ( ) if self . context is not None : tls_thread = threading . Thread ( target = self . handle_tls ) tls_thread . start ( ) except OSError as err : logging . error ( err . __str__ ( ) ) self . stop ( )