From 651be6067ec12cee11fb70bd9be23c4858604a92 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Wed, 13 Aug 2014 15:11:45 +0400 Subject: Generalized definitions of the number of preallocated iovec's. No functional changes. --- src/os/unix/ngx_os.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/os/unix/ngx_os.h') diff --git a/src/os/unix/ngx_os.h b/src/os/unix/ngx_os.h index c646e2aa5..1033d8825 100644 --- a/src/os/unix/ngx_os.h +++ b/src/os/unix/ngx_os.h @@ -56,6 +56,13 @@ ngx_chain_t *ngx_aio_write_chain(ngx_connection_t *c, ngx_chain_t *in, #endif +#if (IOV_MAX > 64) +#define NGX_IOVS_PREALLOCATE 64 +#else +#define NGX_IOVS_PREALLOCATE IOV_MAX +#endif + + extern ngx_os_io_t ngx_os_io; extern ngx_int_t ngx_ncpu; extern ngx_int_t ngx_max_sockets; -- cgit