]> git.kaiwu.me - nginx.git/commit
IOV_MAX handling microoptimization.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 17 Apr 2012 09:13:15 +0000 (09:13 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 17 Apr 2012 09:13:15 +0000 (09:13 +0000)
commit578c02f3a1fda0ad43277af2af022c24f2e74104
treecb4b16e5f43499cb817b08e32e8d70c33395fc3e
parent96d73e291f77152d6494f7cb969ec0cd3bb74215
IOV_MAX handling microoptimization.

We now stop on IOV_MAX iovec entries only if we are going to add new one,
i.e. next buffer can't be coalesced into last iovec.

This also fixes incorrect checks for trailer creation on FreeBSD and
Mac OS X, header.nelts was checked instead of trailer.nelts.
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
src/os/unix/ngx_writev_chain.c