Mercurial > hg > nginx
comparison src/os/unix/ngx_darwin_sendfile_chain.c @ 5727:675bda8dcfdb
FreeBSD has migrated to Bugzilla.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 19 Jun 2014 13:55:59 +0400 |
parents | ad137a80919f |
children | 810e97260edc |
comparison
equal
deleted
inserted
replaced
5726:25ade23cf281 | 5727:675bda8dcfdb |
---|---|
11 | 11 |
12 | 12 |
13 /* | 13 /* |
14 * It seems that Darwin 9.4 (Mac OS X 1.5) sendfile() has the same | 14 * It seems that Darwin 9.4 (Mac OS X 1.5) sendfile() has the same |
15 * old bug as early FreeBSD sendfile() syscall: | 15 * old bug as early FreeBSD sendfile() syscall: |
16 * http://www.freebsd.org/cgi/query-pr.cgi?pr=33771 | 16 * http://bugs.freebsd.org/33771 |
17 * | 17 * |
18 * Besides sendfile() has another bug: if one calls sendfile() | 18 * Besides sendfile() has another bug: if one calls sendfile() |
19 * with both a header and a trailer, then sendfile() ignores a file part | 19 * with both a header and a trailer, then sendfile() ignores a file part |
20 * at all and sends only the header and the trailer together. | 20 * at all and sends only the header and the trailer together. |
21 * For this reason we send a trailer only if there is no a header. | 21 * For this reason we send a trailer only if there is no a header. |