Core event directives

multi_accept (Core event directives)

Controls whether a worker accepts multiple new connections at once; kqueue behavior differs.

Formal Syntax & Structure

nginx syntaxnginx
multi_accept on | off;

Parameters & Attributes

NameTypeDescription
stateon | offAllow workers to accept pending connections in batches rather than singly. Ignored with kqueue; default off.

Working Example

Example Snippetnginx
events { multi_accept off; }
Nginx Reference