Open adotorc opened 6 years ago
Similar problem, these four lines cause a crash (IOError: [Errno 11] Resource temporarily unavailable
):
from multiprocessing import Manager
from signalr import Connection
manager = Manager()
order_books = manager.dict()
Manager
uses sockets for the interprocess communication, so I assume that's how these issues are related.
I've encountered same thing just now, and the solution is to import and monkey patch gevent before that. I.e.:
import gevent.monkey
gevent.monkey.patch_all()
from requests import Session
from signalr import Connection
This prevents the infinite recursion problem.
As soon as signalr is imported, normal requests queries using ssl (get/post) fail to initialize, entering in a recursion loop that ultimately makes them crash.
Steps to reproduce:
Traceback here:
Python 3.6.3 (32bits, Windows) Pip freeze results: