]> git.kaiwu.me - nginx.git/commit
Merge r4336:
authorMaxim Dounin <mdounin@mdounin.ru>
Sun, 5 Feb 2012 12:42:36 +0000 (12:42 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Sun, 5 Feb 2012 12:42:36 +0000 (12:42 +0000)
commite8f02297bea23cdff09050a3d1add07d1e765933
treea0f7baa86b26ebde34ccfed77995ba8bd3948858
parentc68a4cfdc54301d4ac7365d291dbe4af52b1294b
Merge r4336:

Microoptimization of sendfile(2) usage under FreeBSD.

FreeBSD kernel checks headers/trailers pointer against NULL, not
corresponding count.  Passing NULL if there are no headers/trailers
helps to avoid unneeded work in kernel, as well as unexpected 0 bytes
GIO in traces.
src/os/unix/ngx_freebsd_sendfile_chain.c