From ed9b6d8962c6b7cf0546d0b2d69f34c879395757 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 17 Dec 2008 20:47:18 +0000 Subject: remove never used zero copy stuff --- src/core/ngx_buf.c | 6 ------ src/core/ngx_buf.h | 2 -- src/core/ngx_palloc.h | 1 - 3 files changed, 9 deletions(-) (limited to 'src/core') diff --git a/src/core/ngx_buf.c b/src/core/ngx_buf.c index 31d990315..2f2c43721 100644 --- a/src/core/ngx_buf.c +++ b/src/core/ngx_buf.c @@ -201,12 +201,6 @@ ngx_chain_update_chains(ngx_chain_t **free, ngx_chain_t **busy, break; } -#if (NGX_HAVE_WRITE_ZEROCOPY) - if ((*busy)->buf->zerocopy_busy) { - break; - } -#endif - if ((*busy)->buf->tag != tag) { *busy = (*busy)->next; continue; diff --git a/src/core/ngx_buf.h b/src/core/ngx_buf.h index ce26c630e..8649bdb9e 100644 --- a/src/core/ngx_buf.h +++ b/src/core/ngx_buf.h @@ -51,8 +51,6 @@ struct ngx_buf_s { unsigned last_shadow:1; unsigned temp_file:1; - unsigned zerocopy_busy:1; - /* STUB */ int num; }; diff --git a/src/core/ngx_palloc.h b/src/core/ngx_palloc.h index 434f9728b..c31db932c 100644 --- a/src/core/ngx_palloc.h +++ b/src/core/ngx_palloc.h @@ -14,7 +14,6 @@ /* * NGX_MAX_ALLOC_FROM_POOL should be (ngx_pagesize - 1), i.e. 4095 on x86. - * On FreeBSD 5.x it allows to use the zero copy sending. * On Windows NT it decreases a number of locked pages in a kernel. */ #define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1) -- cgit