def run(self):
self.bind_unix_listener()
while not self._complete.is_set():
try:
connection, client_address = self.sock.accept()
self.read_socket(connection)
except (TypeError, BlockingIOError, socket.error, ValueError):
exc_type, exc_value, exc_tb = sys.exc_info()
traceback.print_exception(
exc_type, exc_value, exc_tb, file=sys.stderr)
finally:
connection.close()
评论列表
文章目录