summaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_sendfile_chain.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-05-07 14:25:04 +0000
committerJonathan Kolb <jon@b0g.us>2007-05-07 14:25:04 +0000
commitd7127be32835b36710aee355677f37777046bd13 (patch)
treeeb71aaba12c4153e41b2aaf67fc4240cea4f22df /src/os/unix/ngx_linux_sendfile_chain.c
parent9b4b08199402bb1b2a276b9b36227598140c33af (diff)
downloadnginx-0.5.20.tar.gz
Changes with nginx 0.5.20 07 May 2007v0.5.20
*) Feature: the "sendfile_max_chunk" directive. *) Feature: the "$http_...", "$sent_http_...", and "$upstream_http_..." variables may be changed using the "set" directive. *) Bugfix: a segmentation fault might occur in worker process if the SSI command 'if expr="$var = /"' was used. *) Bugfix: trailing boundary of multipart range response was transferred incorrectly. Thanks to Evan Miller. *) Bugfix: nginx did not work on Solaris/sparc64 if it was built by Sun Studio. Thanks to Andrei Nigmatulin. *) Bugfix: the ngx_http_perl_module could not built by Solaris make. Thanks to Andrei Nigmatulin.
Diffstat (limited to 'src/os/unix/ngx_linux_sendfile_chain.c')
-rw-r--r--src/os/unix/ngx_linux_sendfile_chain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/unix/ngx_linux_sendfile_chain.c b/src/os/unix/ngx_linux_sendfile_chain.c
index eb15c7a5f..ab2a3cf1b 100644
--- a/src/os/unix/ngx_linux_sendfile_chain.c
+++ b/src/os/unix/ngx_linux_sendfile_chain.c
@@ -254,6 +254,10 @@ ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
#else
offset = (int32_t) file->file_pos;
#endif
+
+ ngx_log_debug2(NGX_LOG_DEBUG_EVENT, c->log, 0,
+ "sendfile: @%O %uz", file->file_pos, file_size);
+
rc = sendfile(c->fd, file->file->fd, &offset, file_size);
if (rc == -1) {