From 4968041a7e1ff90b920704f50fccb9e7968d0d99 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 29 Apr 2016 07:36:47 +0000 Subject: document Rack::Chunked/ContentLength semi-requirements Ugh, it sucks that other servers are so tolerant of violations of the Rack spec. Rainbows! had the same problem: https://bogomips.org/rainbows-public/20140704195032.GA13152@dcvr.yhbt.net/ --- examples/yahns_rack_basic.conf.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples') diff --git a/examples/yahns_rack_basic.conf.rb b/examples/yahns_rack_basic.conf.rb index f3f8e6a..610a482 100644 --- a/examples/yahns_rack_basic.conf.rb +++ b/examples/yahns_rack_basic.conf.rb @@ -30,6 +30,12 @@ queue do worker_threads 50 end +# note: Rack requires responses set "Content-Length" or use +# "Transfer-Encoding: chunked". Some Rack servers tolerate +# the lack of these, yahns does not. Thus you should load +# Rack::Chunked and/or Rack::ContentLength middleware in your +# config.ru to ensure clients know when your application +# responses terminate. app(:rack, "config.ru", preload: false) do listen 80 -- cgit v1.2.3-24-ge0c7