yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
* [PATCH 0/2] proxy_pass: fleshing out trailer support
@ 2015-04-07  3:16 Eric Wong
  2015-04-07  3:16 ` [PATCH 1/2] proxy_pass: preliminary support for passing trailers Eric Wong
  2015-04-07  3:16 ` [PATCH 2/2] proxy_pass: send 1.0 requests to upstreams for 1.0 clients Eric Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Wong @ 2015-04-07  3:16 UTC (permalink / raw)
  To: yahns-public

Unfortunately, we need to support response trailers sent from upstreams
to our HTTP/1.1 clients, as trailers are a(n obscure) part of HTTP/1.1.

Then, we must also prevent trailers from being sent to HTTP/1.0 clients,
as HTTP/1.0 clients do not support reading trailers (or chunked
encoding, a prerequisite of trailers).  The only way to send trailers to
HTTP/1.0 clients is to send them as headers, but this is highly
innefficient, especially for fast clients.  So for HTTP/1.0 clients, we
shall forward HTTP/1.0 requests to the backend which should prevent
trailers from being sent at all.

Eric Wong (2):
      proxy_pass: preliminary support for passing trailers
      proxy_pass: send 1.0 requests to upstreams for 1.0 clients

 lib/yahns/proxy_http_response.rb | 102 +++++++++++++++++++++------------------
 lib/yahns/proxy_pass.rb          |   9 +++-
 test/test_proxy_pass.rb          |  84 +++++++++++++++++++++++++++++---
 3 files changed, 141 insertions(+), 54 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-07  3:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-07  3:16 [PATCH 0/2] proxy_pass: fleshing out trailer support Eric Wong
2015-04-07  3:16 ` [PATCH 1/2] proxy_pass: preliminary support for passing trailers Eric Wong
2015-04-07  3:16 ` [PATCH 2/2] proxy_pass: send 1.0 requests to upstreams for 1.0 clients Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/yahns.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).