def run(self): fd = self.socket.fileno() server.set_keepalive(self.cfg.keepalive) server.set_picoev_max_fd(self.cfg.worker_connections) server.set_fastwatchdog(self.tmp.fileno(), self.ppid, int(self.timeout)) #server.set_watchdog(self.watchdog) server.set_listen_socket(fd) server.run(self.wsgi)
def run(self): fd = self.socket.fileno() server.set_keepalive(self.cfg.keepalive) server.set_picoev_max_fd(self.cfg.worker_connections) server.set_fastwatchdog(self.tmp.fileno(), self.ppid) #server.set_watchdog(self.watchdog) server.set_listen_socket(fd) server.run(self.wsgi)
def run(self): if hasattr(self, "sockets"): fds = [s.fileno() for s in self.sockets] else: fds = [self.socket.fileno()] server.set_keepalive(self.cfg.keepalive) server.set_picoev_max_fd(self.cfg.worker_connections) server.set_fastwatchdog(self.tmp.fileno(), self.ppid, int(self.timeout)) #server.set_watchdog(self.watchdog) server.set_listen_socket(fds) server.run(self.wsgi)