diff options
Diffstat (limited to 'src/os/unix/ngx_freebsd_sendfile_chain.c')
-rw-r--r-- | src/os/unix/ngx_freebsd_sendfile_chain.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c index e76f4c6f4..c9d3d7a14 100644 --- a/src/os/unix/ngx_freebsd_sendfile_chain.c +++ b/src/os/unix/ngx_freebsd_sendfile_chain.c @@ -176,6 +176,8 @@ ngx_log_debug(c->log, "NOPUSH"); hsize = 0; } + sent = 0; + rc = sendfile(file->file->fd, c->fd, file->file_pos, fsize + hsize, &hdtr, &sent, 0); |