mirror of
https://github.com/FlipsideCrypto/web3.py.git
synced 2026-02-06 10:56:47 +00:00
25 lines
445 B
Python
25 lines
445 B
Python
import gevent
|
|
from gevent.pywsgi import ( # noqa: F401
|
|
WSGIServer,
|
|
)
|
|
from gevent import ( # noqa: F401
|
|
subprocess,
|
|
socket,
|
|
threading,
|
|
)
|
|
|
|
|
|
sleep = gevent.sleep
|
|
spawn = gevent.spawn
|
|
GreenletThread = gevent.Greenlet
|
|
|
|
|
|
class Timeout(gevent.Timeout):
|
|
def check(self):
|
|
pass
|
|
|
|
|
|
def make_server(host, port, application, *args, **kwargs):
|
|
server = WSGIServer((host, port), application, *args, **kwargs)
|
|
return server
|