From 11dbe97ca401221313dc233aa2d6f67dfcaef1a7 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 29 Mar 2004 17:43:58 +0000 Subject: nginx-0.0.3-2004-03-29-21:43:58 import --- src/os/unix/ngx_freebsd_sendfile_chain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/os/unix/ngx_freebsd_sendfile_chain.c') diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c index fb2898d6f..b8872dfc3 100644 --- a/src/os/unix/ngx_freebsd_sendfile_chain.c +++ b/src/os/unix/ngx_freebsd_sendfile_chain.c @@ -234,6 +234,9 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) } else { rc = writev(c->fd, header.elts, header.nelts); + ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0, + "writev: %d of " SIZE_T_FMT, rc, hsize); + if (rc == -1) { err = ngx_errno; @@ -253,9 +256,6 @@ ngx_chain_t *ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) } sent = rc > 0 ? rc : 0; - - ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, - "writev: " OFF_T_FMT, sent); } c->sent += sent; -- cgit