]> git.kaiwu.me - nginx.git/commit
Don't lose pointer to first nonempty buf in ngx_*_sendfile_chain().
authorGleb Smirnoff <glebius@nginx.com>
Thu, 8 Aug 2013 11:06:39 +0000 (15:06 +0400)
committerGleb Smirnoff <glebius@nginx.com>
Thu, 8 Aug 2013 11:06:39 +0000 (15:06 +0400)
commit65e37b4a128e5c4fe88721c790fd6f5c13102a62
tree13df7393a0d4f489ca50b6541e49cfb7a6bf09bb
parentbe27365bb10e255330d3baeda2b918ea9fd79b8e
Don't lose pointer to first nonempty buf in ngx_*_sendfile_chain().

In ngx_*_sendfile_chain() when calculating pointer to a first
non-zero sized buf, use "in" as iterator.  This fixes processing
of zero sized buf(s) after EINTR.  Otherwise function can return
zero sized buf to caller, and later ngx_http_write_filter()
logs warning.
src/os/unix/ngx_darwin_sendfile_chain.c
src/os/unix/ngx_freebsd_sendfile_chain.c
src/os/unix/ngx_linux_sendfile_chain.c
src/os/unix/ngx_solaris_sendfilev_chain.c