yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: yahns-public@yhbt.net
Subject: [PATCH 0/4] remove chunked/Content-Length requirement from apps
Date: Wed,  3 Aug 2016 03:19:02 +0000	[thread overview]
Message-ID: <20160803031906.14553-1-e@80x24.org> (raw)

This better aligns with behavior of other real-world Rack
servers such as puma and Thin.  We will also now use kgio writev
functionality to speed up writing "Transfer-Encoding: chunked"
to avoid string copies or extra syscalls for other chunking

See [PATCH 3/4] for a small informal benchmark.

4 changes
  response: drop clients after HTTP responses of unknown length
  response: reduce stack overhead for parameter passing
  response: support auto-chunking for HTTP/1.1
  Revert "document Rack::Chunked/ContentLength semi-requirements"

 Documentation/yahns-rackup.pod    | 10 -------
 examples/yahns_rack_basic.conf.rb |  6 -----
 lib/yahns/chunk_body.rb           | 27 +++++++++++++++++++
 lib/yahns/http_client.rb          | 24 ++++++++---------
 lib/yahns/http_response.rb        | 47 +++++++++++++++++++++++---------
 test/test_auto_chunk.rb           | 56 +++++++++++++++++++++++++++++++++++++++
 test/test_extras_exec_cgi.rb      |  4 +--
 7 files changed, 130 insertions(+), 44 deletions(-)
 create mode 100644 lib/yahns/chunk_body.rb
 create mode 100644 test/test_auto_chunk.rb


             reply	other threads:[~2016-08-03  3:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03  3:19 Eric Wong [this message]
2016-08-03  3:19 ` [PATCH 1/4] response: drop clients after HTTP responses of unknown length Eric Wong
2016-08-03  3:19 ` [PATCH 2/4] response: reduce stack overhead for parameter passing Eric Wong
2016-08-03  3:19 ` [PATCH 3/4] response: support auto-chunking for HTTP/1.1 Eric Wong
2016-08-03  3:19 ` [PATCH 4/4] Revert "document Rack::Chunked/ContentLength semi-requirements" Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://yhbt.net/yahns/README

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160803031906.14553-1-e@80x24.org \
    --to=e@80x24.org \
    --cc=yahns-public@yhbt.net \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).