mirror of
https://github.com/nginx/nginx.git
synced 2024-12-04 22:09:01 +08: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
@ -10,7 +10,11 @@
|
|||||||
#include <ngx_event.h>
|
#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)
|
#if (NGX_HAVE_KQUEUE)
|
||||||
|
Loading…
Reference in New Issue
Block a user