CVSROOT:        /cvs
Module name:    src
Changes by:     rob...@cvs.openbsd.org  2012/05/13 03:22:04

Modified files:
        usr.sbin/nginx/src/event: ngx_event_accept.c 
        usr.sbin/nginx/src/os/unix: ngx_errno.h 

Log message:
backport changeset 4619 from nginx trunk:

Accept moderation in case of EMFILE/ENFILE.

In case of EMFILE/ENFILE returned from accept() we disable accept events,
and (in case of no accept mutex used) arm timer to re-enable them later.
With accept mutex we just drop it, and rely on normal accept mutex handling
to re-enable accept events once it's acquired again.

As we now handle errors in question, logging level was changed to "crit"
(instead of "alert" used for unknown errors).

Reply via email to