Mercurial > hg > nginx
comparison src/os/unix/ngx_writev_chain.c @ 501:d4ea69372b94 release-0.1.25
nginx-0.1.25-RELEASE import
*) Bugfix: nginx did run on Linux parisc.
*) Feature: nginx now does not start under FreeBSD if the sysctl
kern.ipc.somaxconn value is too big.
*) Bugfix: if a request was internally redirected by the
ngx_http_index_module module to the ngx_http_proxy_module or
ngx_http_fastcgi_module modules, then the index file was not closed
after request completion.
*) Feature: the "proxy_pass" can be used in location with regular
expression.
*) Feature: the ngx_http_rewrite_filter_module module supports the
condition like "if ($HTTP_USER_AGENT ~ MSIE)".
*) Bugfix: nginx started too slow if the large number of addresses and
text values were used in the "geo" directive.
*) Change: a variable name must be declared as "$name" in the "geo"
directive. The previous variant without "$" is still supported, but
will be removed soon.
*) Feature: the "%{VARIABLE}v" logging parameter.
*) Feature: the "set $name value" directive.
*) Bugfix: gcc 4.0 compatibility.
*) Feature: the --with-openssl-opt=OPTIONS autoconfiguration directive.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 19 Mar 2005 12:38:37 +0000 |
parents | ad1e9ebf93bb |
children | c9ad0d9c7d59 |
comparison
equal
deleted
inserted
replaced
500:9a0f304470f5 | 501:d4ea69372b94 |
---|---|
10 | 10 |
11 | 11 |
12 #define NGX_IOVS 16 | 12 #define NGX_IOVS 16 |
13 | 13 |
14 | 14 |
15 ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) | 15 ngx_chain_t * |
16 ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) | |
16 { | 17 { |
17 u_char *prev; | 18 u_char *prev; |
18 ssize_t n, size, sent; | 19 ssize_t n, size, sent; |
19 off_t send, prev_send; | 20 off_t send, prev_send; |
20 ngx_uint_t eintr, complete; | 21 ngx_uint_t eintr, complete; |
86 | 87 |
87 if (prev == cl->buf->pos) { | 88 if (prev == cl->buf->pos) { |
88 iov->iov_len += size; | 89 iov->iov_len += size; |
89 | 90 |
90 } else { | 91 } else { |
91 if (!(iov = ngx_array_push(&vec))) { | 92 iov = ngx_array_push(&vec); |
93 if (iov == NULL) { | |
92 return NGX_CHAIN_ERROR; | 94 return NGX_CHAIN_ERROR; |
93 } | 95 } |
94 | 96 |
95 iov->iov_base = (void *) cl->buf->pos; | 97 iov->iov_base = (void *) cl->buf->pos; |
96 iov->iov_len = size; | 98 iov->iov_len = size; |