1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-25 11:07:22 +00:00

Reenabled gevent as server

This commit is contained in:
Ozzie Isaacs 2023-11-01 07:47:29 +01:00
parent d26e60724a
commit 40a16f4717

View File

@ -23,7 +23,7 @@ import signal
import socket
try:
from gevwent.pywsgi import WSGIServer
from gevent.pywsgi import WSGIServer
from .gevent_wsgi import MyWSGIHandler
from gevent.pool import Pool
from gevent.socket import socket as GeventSocket
@ -252,7 +252,6 @@ class WebServer(object):
sock.setblocking(0)
socket_name =sock.getsockname()
output = "systemd-socket:" + _readable_listen_address(socket_name[0], socket_name[1])
# log.error("Tornado server isn't supporting socket activation, normal port is used")
elif unix_socket_file and os.name != 'nt':
self._prepare_unix_socket(unix_socket_file)
output = "unix:" + unix_socket_file