]> git.kaiwu.me - nginx.git/commit
Fixed sendfile() trailers on OS X (8e903522c17a, 1.7.8).
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 13 Jan 2015 15:58:23 +0000 (18:58 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 13 Jan 2015 15:58:23 +0000 (18:58 +0300)
commit2754fd3c803cce0ae7caf1a2ce2ada7e88e60b1b
tree30f25664294706f615dc15d52824bf1c95f651f6
parent843fb552ecf53836b5205bec26513cba46ca59f8
Fixed sendfile() trailers on OS X (8e903522c17a, 1.7.8).

The trailer.count variable was not initialized if there was a header,
resulting in "sendfile() failed (22: Invalid argument)" alerts on OS X
if the "sendfile" directive was used.  The bug was introduced
in 8e903522c17a (1.7.8).
src/os/unix/ngx_darwin_sendfile_chain.c