Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Aug 13, 2024
1 parent 40402bc commit a77eeb8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
15 changes: 10 additions & 5 deletions py4web/server_adapters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,35 @@

try:
from .adapter_wsgiref import WSGIRefAdapter

available["wsgiref+threaded"] = WSGIRefAdapter
except ModuleNotFoundError:
missing.append("wsgiref+threaded")
missing.append("wsgiref+threaded")

try:
from .adapter_rocket3 import Rocket3Adapter

available["rocket"] = Rocket3Adapter
except ModuleNotFoundError:
missing.append("rocket")
missing.append("rocket")

try:
from .adapter_gevent import GeventAdapter

available["gevent"] = GeventAdapter
except ModuleNotFoundError:
missing.append("gevent")
missing.append("gevent")

try:
from .adapter_gunicorn_gevent import GunicornGeventAdapter

available["gunicorn+gevent"] = GunicornGeventAdapter
except ModuleNotFoundError:
missing.append("gunicorn+gevent")
missing.append("gunicorn+gevent")

try:
from .adapter_gevent_websockets import GeventWebsocketsAdapter

available["gevent+websockets"] = GeventWebsocketsAdapter
except ModuleNotFoundError:
missing.append("gevent+websockets")
missing.append("gevent+websockets")
3 changes: 1 addition & 2 deletions py4web/server_adapters/adapter_gevent.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import ssl
import threading

from ombott.server_adapters import ServerAdapter

from gevent import local, pywsgi # pip install gevent
from ombott.server_adapters import ServerAdapter

from .logging_utils import logging_conf

Expand Down
3 changes: 1 addition & 2 deletions py4web/server_adapters/adapter_gevent_websockets.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# from geventwebsocket.handler import WebSocketHandler # pip install gevent-websocket
from gevent import pywsgi
from gevent_ws import WebSocketHandler # pip install gevent gevent-ws
from ombott.server_adapters import ServerAdapter

from gevent import pywsgi

from .logging_utils import logging_conf

# https://stackoverflow.com/questions/5312311/secure-websockets-with-self-signed-certificate
Expand Down
3 changes: 1 addition & 2 deletions py4web/server_adapters/adapter_gunicorn_gevent.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
import sys
import threading

from ombott.server_adapters import ServerAdapter

from gevent import local # pip install gevent gunicorn setproctitle
from ombott.server_adapters import ServerAdapter

from .logging_utils import check_level, get_log_file, logging_conf

Expand Down

0 comments on commit a77eeb8

Please sign in to comment.