Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
socket is not registered: gthread worker crash #1258
I'm using gunicorn 19.4.1, and I haven't been able to figure out how to reproduce this reliably, but I'm seeing the following crash periodically in my gthread workers. This causes the worker to exit and the master to spawn a new one. I also found the following StackOverflow question that mentions running into the same problem: http://stackoverflow.com/questions/26634327/gunicorn-worker-periodically-crashes-socket-is-not-registered
The workaround in that question suggests that the issue could be related to keepalive and connections that were timed out. I could believe that might be related: I seem to hit the issue when my workers are extremely busy.
I will report back if I figure out more details.
For completeness: I initially reported this on Google App Engine's issue tracker: GoogleCloudPlatform/python-compat-runtime#94