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:
Maxim Dounin 2014-07-28 18:30:19 +04:00
parent 8639e17f94
commit 5958181b1e

View File

@ -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)