diff options
author | Valentin Bartenev <vbart@nginx.com> | 2014-08-13 15:11:45 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2014-08-13 15:11:45 +0400 |
commit | 651be6067ec12cee11fb70bd9be23c4858604a92 (patch) | |
tree | 648b58390643f0b5a11ff92710aa4533d5d82a95 /src/os/unix/ngx_solaris_sendfilev_chain.c | |
parent | 1cbeabfd4cda90e600756380b137b9065f645e83 (diff) | |
download | nginx-651be6067ec12cee11fb70bd9be23c4858604a92.tar.gz nginx-651be6067ec12cee11fb70bd9be23c4858604a92.zip |
Generalized definitions of the number of preallocated iovec's.
No functional changes.
Diffstat (limited to 'src/os/unix/ngx_solaris_sendfilev_chain.c')
-rw-r--r-- | src/os/unix/ngx_solaris_sendfilev_chain.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/os/unix/ngx_solaris_sendfilev_chain.c b/src/os/unix/ngx_solaris_sendfilev_chain.c index 1afe5ac19..ba328c810 100644 --- a/src/os/unix/ngx_solaris_sendfilev_chain.c +++ b/src/os/unix/ngx_solaris_sendfilev_chain.c @@ -35,12 +35,7 @@ ngx_chain_t *ngx_solaris_sendfilev_chain(ngx_connection_t *c, ngx_chain_t *in, #endif -#if (IOV_MAX > 64) -#define NGX_SENDFILEVECS 64 -#else -#define NGX_SENDFILEVECS IOV_MAX -#endif - +#define NGX_SENDFILEVECS NGX_IOVS_PREALLOCATE ngx_chain_t * |