Nginx fails to accept new connection if active worker crashes

faskiri.devel nginx-forum at nginx.us
Tue Nov 15 11:37:22 UTC 2011


Hi Andrew

Thanks for the prompt reply.

As a temporary fix I had created a variable in the shared memory to
track which pid is holding the mutex so that the check in
[https://svn.nginx.org/nginx/browser/nginx/trunk/src/os/unix/ngx_process.c?annotate=blame#L503]
works. It works fine for me, hadnt realized I could switch it off. Are
we talking about putting "accept_mutex off" in the nginx.conf file? It
will be great if you could explain what that will actually do, as in,
how will the new requests be handed off to workers.

Best Regards
+Fasih

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,218359,218373#msg-218373



More information about the nginx mailing list