Mercurial > hg > nginx
comparison src/os/unix/ngx_readv_chain.c @ 5776:d1bde5c3c5d2
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 28 Jul 2014 18:30:19 +0400 |
parents | ee78c7705a8e |
children | 43512a33e8f2 |
comparison
equal
deleted
inserted
replaced
5775:294d020bbcfe | 5776:d1bde5c3c5d2 |
---|---|
8 #include <ngx_config.h> | 8 #include <ngx_config.h> |
9 #include <ngx_core.h> | 9 #include <ngx_core.h> |
10 #include <ngx_event.h> | 10 #include <ngx_event.h> |
11 | 11 |
12 | 12 |
13 #define NGX_IOVS 16 | 13 #if (IOV_MAX > 64) |
14 #define NGX_IOVS 64 | |
15 #else | |
16 #define NGX_IOVS IOV_MAX | |
17 #endif | |
14 | 18 |
15 | 19 |
16 #if (NGX_HAVE_KQUEUE) | 20 #if (NGX_HAVE_KQUEUE) |
17 | 21 |
18 ssize_t | 22 ssize_t |