nginx-0.0.2-2004-02-19-19:48:14 import

This commit is contained in:
Igor Sysoev 2004-02-19 16:48:14 +00:00
parent 43c3cd91a9
commit bb1ba3fa6d
3 changed files with 26 additions and 23 deletions

View File

@ -54,7 +54,7 @@ HTTP_FILTER_MODULES="$HTTP_FILTER_MODULES \
HTTP_MODULES="$HTTP_MODULES $HTTP_STATIC_MODULE $HTTP_INDEX_MODULE"
if [ $HTTP_REWRITE = YES ]; then
if [ $HTTP_REWRITE = YES -a $USE_PCRE != DISABLED ]; then
USE_PCRE=YES
HTTP_MODULES="$HTTP_MODULES $HTTP_REWRITE_MODULE"
HTTP_SRCS="$HTTP_SRCS $HTTP_REWRITE_SRCS"

View File

@ -58,7 +58,7 @@ do
--with-cc=*) CC="$value" ;;
--without-pcre) USE_PCRE=NO ;;
--without-pcre) USE_PCRE=DISABLED ;;
--with-pcre=*) PCRE="$value" ;;
--with-md5=*) MD5="$value" ;;
--with-zlib=*) ZLIB="$value" ;;

View File

@ -118,6 +118,7 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in)
}
}
if (file) {
/* create the tailer iovec and coalesce the neighbouring hunks */
prev = NULL;
@ -136,13 +137,15 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in)
iov->iov_len += cl->hunk->last - cl->hunk->pos;
} else {
ngx_test_null(iov, ngx_push_array(&trailer), NGX_CHAIN_ERROR);
ngx_test_null(iov, ngx_push_array(&trailer),
NGX_CHAIN_ERROR);
iov->iov_base = cl->hunk->pos;
iov->iov_len = cl->hunk->last - cl->hunk->pos;
}
prev = cl->hunk->last;
}
}
/*
* the tail is the rest of the chain that exceeded