diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2016-03-15 18:26:59 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2016-03-15 18:26:59 +0300 |
commit | 07a7b57762dbdfee5f7fdf574233679a1a6da971 (patch) | |
tree | 88f05638a86a0475424229621cfb9b9a8e12c1c9 /src/os/unix/ngx_linux_sendfile_chain.c | |
parent | 681e735a33576e7a767fd631cbbc6a269970658c (diff) | |
download | nginx-07a7b57762dbdfee5f7fdf574233679a1a6da971.tar.gz nginx-07a7b57762dbdfee5f7fdf574233679a1a6da971.zip |
Truncation detection in sendfilev() on Solaris.
While sendfilev() is documented to return -1 with EINVAL set
if the file was truncated, at least Solaris 11 silently returns 0,
and this results in CPU hog. Added a test to complain appropriately
if 0 is returned.
Diffstat (limited to 'src/os/unix/ngx_linux_sendfile_chain.c')
0 files changed, 0 insertions, 0 deletions