Hacker News new | past | comments | ask | show | jobs | submit login

I've heard that using gevent with multiprocessing can cause problems, is that still the case?



I'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.


You 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: