Comment 2 for bug 1193031

Revision history for this message
Xavier Queralt (xqueralt-deactivatedaccount) wrote :

I can confirm that this issue also appears in ubuntu using havana.

I've done some digging on this and got to the conclusion that eventlet's epoll hub implementation doesn't play well with multiprocessing module. The issue doesn't happen if we force to use "poll" hub in the websocketproxy module or just monkey_patch inside the new_client method (as this is run in a separate process) :

websockify uses 'select' directly to decide when to write/read to a socket and multiprocessing to spawn the processes that will take care of the client. This makes me think that eventlet's epoll implementation is broken if used together with multiprocessing.

I'll update if I find something else while following the trail into eventlet's internals.