Maxim Dounin
August 03, 2016 10:26PM
Hello!

On Mon, Aug 01, 2016 at 10:56:21AM -0700, Piotr Sikora wrote:

> Hey Maxim,
>
> > I still don't see any real world usage example reported.
>
> That's because you chose to ignore those provided to you.
>
> 1) As of right now, trailers are ignored by the browsers, so there is
> no point in "leaking" them to the public Internet. And indeed, the
> most popular use case for trailers is within complex systems, where
> trailers are used for logging, tracing, debug messages & signaling
> end-of-response...

By saying "most popular use case" you are talking about something
real-world you are aware of?

> those are usually stripped at the proxies facing public Internet.

And this probably an additional thing to consider when introducing
trailers: right now nginx strips all trailers. Changing this may
be a surprise for those who use trailers internally, if any.

> 2) You're asking for real world examples of trailers on a mailing list
> dedicated to NGINX development, which means that noone here uses
> trailers in production, unless they maintain their own version of
> NGINX... and yet, you had 4 people (out of a few hundred?) expressing
> interest in this feature.

In my practice, "expressing interest" generally means something
close to nothing.

> 3) Trailers are used in gRPC [1], Fetch API [2] and Server Timing [3],
> but I guess none of those is "real world" enough for you.

We've already talked about gRPC. Fetch API and Server Timing are
just specifications being developed which allow use of trailers,
not much different from HTTP/1.1 itself.

On the other hand, here is a good discussion of trailers and their
security in this Fetch API ticket:

https://github.com/whatwg/fetch/issues/34

And here is a linked HTTPbis ticket to reconsider "TE: trailers"
as it looks unneded:

https://github.com/httpwg/http11bis/issues/18

This is somewhat in line with what I think about it, as previously
discussed in this thread.

> > Additionally, quick look suggests that the patch still
> > unconditionally removes Content-Length from a response if client
> > advertizes trailers support. As I previously wrote, I found this
> > approach to be wrong.
>
> Yes, the only change in the patch I sent yesterday is a bugfix to
> avoid sending empty DATA frame in case when trailers were generated
> but there was no payload to send.
>
> Like I said before, I'm happy to add "r->expect_trailers" or whatever
> else mechanism you choose to signal that NGINX is configured to
> produce trailers, but if you don't want to add trailers in the first
> place, then there is no point in me spending time working on that...
> is there?

I'm still not convinced that trailers are needed. As previously
said, this HTTP feature was mostly unused for 17 years, and
this suggests something is wrong with the feature. So it may be a
good idea to postpone this at least till some real user will
appear.

In either case, I do not think that added trailers should by
itself change transfer encoding used and remove Content-Length.

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

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

[PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 934 June 26, 2016 07:14PM

[PATCH 2 of 2] Headers filter: add "add_trailer" directive

Piotr Sikora 427 June 26, 2016 07:14PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Maxim Dounin 384 June 27, 2016 09:46AM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 392 June 27, 2016 10:38AM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

shuxinyang 461 June 27, 2016 01:06PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 367 June 27, 2016 01:14PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

shuxinyang 387 June 27, 2016 02:56PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 482 June 27, 2016 03:16PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

shuxinyang 396 June 27, 2016 06:04PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 361 June 27, 2016 07:18PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

shuxinyang 366 June 27, 2016 09:00PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 332 June 27, 2016 09:46PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Maxim Dounin 371 June 27, 2016 01:54PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 371 June 27, 2016 03:06PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 339 June 30, 2016 03:58PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Maxim Dounin 377 July 04, 2016 10:22AM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 373 July 06, 2016 05:04PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Maxim Dounin 359 July 07, 2016 11:02AM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 341 July 07, 2016 04:10PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Maxim Dounin 345 July 07, 2016 07:22PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 398 July 13, 2016 01:28PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Maxim Dounin 409 July 13, 2016 02:44PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Piotr Sikora 317 July 13, 2016 08:36PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Alexey Ivanov 342 July 20, 2016 06:36PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Maxim Dounin 321 July 20, 2016 09:24PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Alexey Ivanov 352 July 20, 2016 09:34PM

Re: [PATCH 1 of 2] HTTP: add support for trailers in HTTP responses

Maxim Dounin 426 July 21, 2016 09:46AM

[PATCH] HTTP: add support for trailers in HTTP responses

Piotr Sikora 327 August 01, 2016 01:00AM

Re: [PATCH] HTTP: add support for trailers in HTTP responses

Piotr Sikora 316 August 01, 2016 03:36AM

Re: [PATCH] HTTP: add support for trailers in HTTP responses

Maxim Dounin 289 August 01, 2016 09:24AM

Re: [PATCH] HTTP: add support for trailers in HTTP responses

Piotr Sikora 448 August 01, 2016 01:58PM

Re: [PATCH] HTTP: add support for trailers in HTTP responses

Maxim Dounin 346 August 03, 2016 10:26PM

Re: [PATCH] HTTP: add support for trailers in HTTP responses

Piotr Sikora 302 August 18, 2016 09:14PM

Re: [PATCH] HTTP: add support for trailers in HTTP responses

Valentin V. Bartenev 296 August 19, 2016 07:16AM

Re: [PATCH] HTTP: add support for trailers in HTTP responses

Maxim Dounin 299 August 23, 2016 11:00AM

Re: [PATCH] HTTP: add support for trailers in HTTP responses

Maxim Dounin 514 August 23, 2016 10:24AM

Re: [PATCH] HTTP: add support for trailers in HTTP responses

Piotr Sikora 988 August 31, 2016 09:32PM



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

Online Users

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