Welcome! Log In Create A New Profile

Advanced

Re: SPDY increasing size of pages

Maxim Dounin
August 08, 2012 09:32AM
Hello!

On Wed, Aug 08, 2012 at 12:50:48PM +0200, Piotr Sikora wrote:

> Hey,
>
> >This is how it is in nginx now. For example, if a response has
> >been sent over
> >HTTP with chunked transfer encoding, the $body_bytes_sent also
> >will not equal
> >to payload size.
> >
> >Personally I do not really agree with that, but it should be discussed and
> >changed globally.
>
> Yes, it should be changed to report only sent payload size (IMHO).

In case of http the $body_bytes_sent represents message-body[1]
size (aka response body size) as sent to client. Changing it to
represent entity-body[2] size instead in general won't be trivial:
e.g. with gzip transfer encoding it won't be possible to track
size of payload sent without introducing either additional stream
of "sizes" or some granularity. With currently supported chunked
encoding it would be a bit easier, but I don't really think we
want this just to be able to see better(?) numbers in logs.
Especially keeping in mind it's just some numbers, and I don't
think entity-body size is really better than message-body size.

In case of spdy we might want to actually keep spdy as a separate
layer and don't count it's overhead (or size reduction) at all,
much like it's currently done for SSL.

[1] http://tools.ietf.org/html/rfc2616#section-6
[2] http://tools.ietf.org/html/rfc2616#section-4.3

Maxim Dounin

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

SPDY increasing size of pages

eiji-gravion 2857 August 06, 2012 01:44PM

Re: SPDY increasing size of pages

Tom van der Woerdt 1076 August 06, 2012 01:56PM

Re: SPDY increasing size of pages

Valentin V. Bartenev 939 August 06, 2012 06:56PM

RE: SPDY increasing size of pages

eiji-gravion 1115 August 08, 2012 04:10AM

Re: SPDY increasing size of pages

Valentin V. Bartenev 897 August 08, 2012 05:56AM

Re: SPDY increasing size of pages

Tom van der Woerdt 1025 August 08, 2012 06:16AM

Re: SPDY increasing size of pages

Valentin V. Bartenev 881 August 08, 2012 06:42AM

Re: SPDY increasing size of pages

Tom van der Woerdt 1019 August 08, 2012 06:48AM

Re: SPDY increasing size of pages

VBart 1194 August 08, 2012 06:18PM

Re: SPDY increasing size of pages

Tom van der Woerdt 1032 August 09, 2012 04:48AM

Re: SPDY increasing size of pages

Piotr Sikora 956 August 08, 2012 06:52AM

Re: SPDY increasing size of pages

Maxim Dounin 1046 August 08, 2012 09:32AM

Re: SPDY increasing size of pages

Piotr Sikora 805 August 10, 2012 06:40AM

Re: SPDY increasing size of pages

VBart 1222 August 10, 2012 09:04AM

Re: SPDY increasing size of pages

Piotr Sikora 1049 August 10, 2012 11:10PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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