yahns Ruby server user/dev discussion
 help / color / Atom feed
* [PATCH 0/4] remove chunked/Content-Length requirement from apps
@ 2016-08-03  3:19 Eric Wong
  2016-08-03  3:19 ` [PATCH 1/4] response: drop clients after HTTP responses of unknown length Eric Wong
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Eric Wong @ 2016-08-03  3:19 UTC (permalink / raw)
  To: yahns-public

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

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

-- 
EW

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

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03  3:19 [PATCH 0/4] remove chunked/Content-Length requirement from apps Eric Wong
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

yahns Ruby server user/dev discussion

Archives are clonable:
	git clone --mirror https://yhbt.net/yahns-public
	git clone --mirror http://ou63pmih66umazou.onion/yahns-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.yahns
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.yahns

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox