Welcome! Log In Create A New Profile

Advanced

Re: Gzip vs. sendfile

Maxim Dounin
August 25, 2015 08:40AM
Hello!

On Mon, Aug 24, 2015 at 11:50:10PM +0200, Joó Ádám wrote:

> From https://www.nginx.com/blog/tuning-nginx/:
>
> > Note, however, that because the data never touches user space
> > it’s not subject to the filters in the regular NGINX
> > processing chain. As a result, filters that change content,
> > for example the gzip filter, have no effect.
>
> Which never occurred to me, but sounds reasonable. What is more
> surprising is that I found virtually no discussion on this, and
> I wasn’t able to reproduce it.

The statement quoted is incorrect. Instead, if any filter is going
to change content, sendfile won't be used. I'll ping Rick to fix
this.

[...]

> Is it actually the other way around and filters disable sendfile?

Yes.

--
Maxim Dounin
http://nginx.org/

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

Gzip vs. sendfile

Joó Ádám August 24, 2015 05:52PM

Re: Gzip vs. sendfile

Maxim Dounin August 25, 2015 08:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
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