From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.142.191.1 with SMTP id o1cs26328wff; Sat, 5 Dec 2009 16:40:20 -0800 (PST) Received: from mr.google.com ([10.90.124.10]) by 10.90.124.10 with SMTP id w10mr5839341agc.6.1260060019246 (num_hops = 1); Sat, 05 Dec 2009 16:40:19 -0800 (PST) Received: by 10.90.124.10 with SMTP id w10mr680678agc.6.1260060017708; Sat, 05 Dec 2009 16:40:17 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.213.3.206 with SMTP id 14ls427495ebo.0.p; Sat, 05 Dec 2009 16:40:16 -0800 (PST) Received: by 10.213.15.20 with SMTP id i20mr639139eba.17.1260060016289; Sat, 05 Dec 2009 16:40:16 -0800 (PST) Received: by 10.213.15.20 with SMTP id i20mr639138eba.17.1260060016269; Sat, 05 Dec 2009 16:40:16 -0800 (PST) Return-Path: Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by gmr-mx.google.com with ESMTP id 18si435925ewy.8.2009.12.05.16.40.16; Sat, 05 Dec 2009 16:40:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.219.224 is neither permitted nor denied by best guess record for domain of ibc@aliax.net) client-ip=209.85.219.224; Received: by mail-ew0-f224.google.com with SMTP id 24so4216175ewy.26 for ; Sat, 05 Dec 2009 16:40:16 -0800 (PST) Received: by 10.213.79.66 with SMTP id o2mr773672ebk.22.1260060016046; Sat, 05 Dec 2009 16:40:16 -0800 (PST) Return-Path: Received: from ibc-laptop.localnet ([212.230.46.89]) by mx.google.com with ESMTPS id 14sm2641472ewy.15.2009.12.05.16.40.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 05 Dec 2009 16:40:15 -0800 (PST) From: =?utf-8?q?I=C3=B1aki_Baz_Castillo?= To: rack-devel@googlegroups.com Subject: Why Thin handler uses "Chunked" Trasfer-Encoding? Date: Sun, 6 Dec 2009 01:40:12 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.28-16-generic; KDE/4.3.2; x86_64; ; ) MIME-Version: 1.0 Message-Id: <200912060140.13051.ibc@aliax.net> X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.219.224 is neither permitted nor denied by best guess record for domain of ibc@aliax.net) smtp.mail=ibc@aliax.net Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/84ddfaed60efd056 X-Message-Url: http://groups.google.com/group/rack-devel/msg/628c54d4284fe77c List-Unsubscribe: , List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Thin adapter looks like: =2D------------------------------------ require "thin" require "rack/content_length" require "rack/chunked" module Rack module Handler class Thin def self.run(app, options=3D{}) app =3D Rack::Chunked.new(Rack::ContentLength.new(app)) server =3D ::Thin::Server.new(options[:Host] || '0.0.0.0', options[:Port] || 8080, app) yield server if block_given? server.start end end end end =2D---------------------------- Why to force "Chunked"? =2D-=20 I=C3=B1aki Baz Castillo