use flask-socketio
to launch
gunicorn-- worker-class eventlet-b 127.0.0.1 worker-class eventlet 8888-w 1 run:app-- reload
the access page can be accessed normally, but the resource file cannot be loaded
-sharp
GET http://127.0.0.1:8888/static/js/socketio.js 200 (OK)
Traceback (most recent call last):
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 66, in handle
six.reraise(*sys.exc_info())
File "/root/python/xvenv/lib/python3.6/site-packages/gunicorn/six.py", line 625, in reraise
raise value
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 56, in handle
self.handle_request(listener_name, req, client, addr)
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 129, in handle_request
six.reraise(*sys.exc_info())
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/six.py", line 625, in reraise
raise value
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 112, in handle_request
resp.write_file(respiter)
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/http/wsgi.py", line 403, in write_file
if not self.sendfile(respiter):
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/http/wsgi.py", line 393, in sendfile
sent += sendfile(sockno, fileno, offset + sent, count)
BlockingIOError: [Errno 11] Resource temporarily unavailable
[2018-08-01 12:35:26 +0800] [30459] [ERROR] Socket error processing request.
Traceback (most recent call last):
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 66, in handle
six.reraise(*sys.exc_info())
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/six.py", line 625, in reraise
raise value
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 56, in handle
self.handle_request(listener_name, req, client, addr)
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 129, in handle_request
six.reraise(*sys.exc_info())
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/six.py", line 625, in reraise
raise value
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/workers/base_async.py", line 112, in handle_request
resp.write_file(respiter)
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/http/wsgi.py", line 403, in write_file
if not self.sendfile(respiter):
File "/root/python/venv/lib/python3.6/site-packages/gunicorn/http/wsgi.py", line 393, in sendfile
sent += sendfile(sockno, fileno, offset + sent, count)
BlockingIOError: [Errno 11] Resource temporarily unavailable
obscure