Re: nginx null bytes on static image

2017-10-05 Thread Maxim Dounin
Hello! On Thu, Oct 05, 2017 at 08:57:14AM -0400, soulseekah wrote: > Thanks. Turning off sendfile worked, but a small test program in C on the > same filesystem doesn't yield this behavior. > What else could I test to reproduce this and confirm OS or filesystem > issues? If you are able to repro

Re: nginx null bytes on static image

2017-10-05 Thread soulseekah
Thanks. Turning off sendfile worked, but a small test program in C on the same filesystem doesn't yield this behavior. What else could I test to reproduce this and confirm OS or filesystem issues? Thanks for your time and ideas. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276676,27

Re: nginx null bytes on static image

2017-10-04 Thread Maxim Dounin
Hello! On Wed, Oct 04, 2017 at 08:01:48AM -0400, soulseekah wrote: > nginx/1.12.1 > > Creating new files with PHP (image resizing) works fine, the new files are > served well. Then suddenly after a couple of days the file is returned as a > sequence of NULL bytes Content-Length long. > > HTTP/1

nginx null bytes on static image

2017-10-04 Thread soulseekah
nginx/1.12.1 Creating new files with PHP (image resizing) works fine, the new files are served well. Then suddenly after a couple of days the file is returned as a sequence of NULL bytes Content-Length long. HTTP/1.1 200 OK Server: nginx/1.12.1 Date: Wed, 04 Oct 2017 11:33:57 GMT Content-Type: im