Made hot fixes
This commit is contained in:
parent
3f44ddaf97
commit
205319e70d
16
src/app.py
16
src/app.py
@ -2,7 +2,21 @@ from eventlet import wsgi
|
||||
from eventlet.greenio import GreenSocket
|
||||
|
||||
import eventlet
|
||||
eventlet.monkey_patch(all=True)
|
||||
eventlet.monkey_patch()
|
||||
|
||||
# Принудительная инициализация сокетов
|
||||
import eventlet.hubs
|
||||
eventlet.hubs.use_hub()
|
||||
|
||||
# Явная проверка
|
||||
import socket
|
||||
print(f"Actual socket module: {socket.__name__}")
|
||||
print(f"Actual socket class: {socket.socket}")
|
||||
|
||||
if not hasattr(socket, '_realsocket'):
|
||||
print("WARNING: Monkey patching failed!")
|
||||
else:
|
||||
print("Monkey patching successful")
|
||||
|
||||
from flask_cors import CORS
|
||||
from pymongo import MongoClient
|
||||
|
Loading…
x
Reference in New Issue
Block a user