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
| Name | Type | Description |
|---|---|---|
| state | on | off | Allow workers to accept pending connections in batches rather than singly. Ignored with kqueue; default off. |
Working Example
Example Snippetnginx
events { multi_accept off; }