3 ms·
I've heard that using gevent with multiprocessing can cause problems, is that still the case?
by johtso 13y ago
I've heard that using gevent with multiprocessing can cause problems, is that still the case?
- asperous 13y agoYou don't want multiprocessing to fork your process after gevent is loaded. If you can avoid that (like hold off on monkey patching) then it works great.
- inportb 13y agoI've used gevent in multiprocess situations, and it worked just fine. I did rig up my own gevent-based IPC, though. Just create a socketpair before forking, and attach some JSON-RPC (or protobuf/msgpack/etc) endpoints after.