]> git.kaiwu.me - nginx.git/commit
Truncation detection in sendfile() on Linux.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 15 Mar 2016 15:26:17 +0000 (18:26 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 15 Mar 2016 15:26:17 +0000 (18:26 +0300)
commit681e735a33576e7a767fd631cbbc6a269970658c
tree6dfa099f39f5e3eb4fc8009d4bc3ca31394cdace
parent2ce791f2cddff967fd3bcbbedcd4ea283a9c77e1
Truncation detection in sendfile() on Linux.

This addresses connection hangs as observed in ticket #504, and
CPU hogs with "aio threads; sendfile on" as reported in the mailing list,
see http://mailman.nginx.org/pipermail/nginx-ru/2016-March/057638.html.

The alert is identical to one used on FreeBSD.
src/os/unix/ngx_linux_sendfile_chain.c