summaryrefslogtreecommitdiffhomepage
path: root/src/os/unix/ngx_darwin_sendfile_chain.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2013-08-08Don't lose pointer to first nonempty buf in ngx_*_sendfile_chain().Gleb Smirnoff1-16/+14
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.
2012-04-17IOV_MAX handling microoptimization.Maxim Dounin1-5/+11
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.
2012-02-28Fixed spelling in single-line comments.Ruslan Ermilov1-1/+1
2012-01-18Copyright updated.Maxim Konovalov1-0/+1
2009-08-30refactor EAGAIN/EINTR processingIgor Sysoev1-19/+21
2008-07-30*) move Darwin support to separate filesIgor Sysoev1-0/+363
*) Darwin sendfile() support