Welcome! Log In Create A New Profile

Advanced

Re: nginx null bytes on static image

Maxim Dounin
October 05, 2017 09:40AM
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 reproduce the problem again by enabling
sendfile in nginx, you may want to trace relevant syscalls nginx
does and try to reproduce exactly the same in your C test program.
In particular, something like O_DIRECT, non-blocking mode on
sockets, or sendfile() headers/trailers might be important.

--
Maxim Dounin
http://nginx.org/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx null bytes on static image

soulseekah October 04, 2017 08:01AM

Re: nginx null bytes on static image

Maxim Dounin October 04, 2017 10:48AM

Re: nginx null bytes on static image

soulseekah October 05, 2017 08:57AM

Re: nginx null bytes on static image

Maxim Dounin October 05, 2017 09:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 195
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready