From 0a280a3fc081877bc45cbdc0511a8cc42675213c Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sun, 12 Oct 2003 16:49:16 +0000 Subject: nginx-0.0.1-2003-10-12-20:49:16 import --- src/os/unix/ngx_writev_chain.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/os/unix/ngx_writev_chain.c') diff --git a/src/os/unix/ngx_writev_chain.c b/src/os/unix/ngx_writev_chain.c index 32b2dd48d..70141e341 100644 --- a/src/os/unix/ngx_writev_chain.c +++ b/src/os/unix/ngx_writev_chain.c @@ -1,6 +1,7 @@ #include #include +#include ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) @@ -13,6 +14,10 @@ ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) ngx_array_t iovecs; ngx_chain_t *ce; + if (!c->write->ready) { + return in; + } + ngx_init_array(iovecs, c->pool, 10, sizeof(struct iovec), NGX_CHAIN_ERROR); prev = NULL; -- cgit v1.2.3