mirror of
https://github.com/nginx/nginx.git
synced 2026-06-25 19:37:00 +00:00
Bigger iovec buffer in ngx_readv_chain().
This helps to reduce likelyhood of memory allocations in ngx_readv_chain(), which are known to lead to noticeable effects in some cases, see http://mailman.nginx.org/pipermail/nginx/2014-July/044512.html.
This commit is contained in:
parent
8639e17f94
commit
5958181b1e
1 changed files with 5 additions and 1 deletions
|
|
@ -10,7 +10,11 @@
|
|||
#include <ngx_event.h>
|
||||
|
||||
|
||||
#define NGX_IOVS 16
|
||||
#if (IOV_MAX > 64)
|
||||
#define NGX_IOVS 64
|
||||
#else
|
||||
#define NGX_IOVS IOV_MAX
|
||||
#endif
|
||||
|
||||
|
||||
#if (NGX_HAVE_KQUEUE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue