Return-Path: X-Original-To: apmail-httpd-users-archive@www.apache.org Delivered-To: apmail-httpd-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 868E4672C for ; Sun, 5 Jun 2011 21:52:20 +0000 (UTC) Received: (qmail 80229 invoked by uid 500); 5 Jun 2011 21:52:17 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 80205 invoked by uid 500); 5 Jun 2011 21:52:17 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 80196 invoked by uid 99); 5 Jun 2011 21:52:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 21:52:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of covener@gmail.com designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-gw0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 21:52:10 +0000 Received: by gwb19 with SMTP id 19so1779423gwb.18 for ; Sun, 05 Jun 2011 14:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=BOPRnQfA/4hNcTaxYhQ7ZGrWUURilIV21KaswSf4d+0=; b=UXdKKe7NPz/1wp3UpBHwQLqkbv6B1xXWfrKp3yfsQosTtPAgbpK6uh5JHeFD2i9o07 7g982VkqYP0DIMNIC8ZQOcfz2ZKw0nHKjQ54HW8He6b4vsxp7zUOJvxRNHNT+VgGOI/i E/uY1hcLbmEF8TIhec4dGB1rYli+RUNDIgdfs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=hesD/c2wrs0SlIM9pTG+T4SntXUA6pRp2m09F2mUKUALghB+Mv6jxrE8bqM61sZkzr VmmJKBeD+sPDrYblaZfac14yHysMHNqYQ8Ss10GIUHaAmn7WpIv7N2gcb8ScXnCAUu0c 971zJyArO4+zPvFPAswWKBsPdZVQKjMWGCMvU= MIME-Version: 1.0 Received: by 10.150.210.6 with SMTP id i6mr3694097ybg.311.1307310709815; Sun, 05 Jun 2011 14:51:49 -0700 (PDT) Received: by 10.147.168.3 with HTTP; Sun, 5 Jun 2011 14:51:49 -0700 (PDT) In-Reply-To: References: <99B7EA1BC7D04A23A7CF60533DCDDD31@rabbithill> <3AEF44764A564DDEA5E93118E87E369F@rabbithill> <4DEBB657.5030205@rowe-clan.net> <4DEBC800.1020707@rowe-clan.net> <4DEBDEE3.9040007@rowe-clan.net> Date: Sun, 5 Jun 2011 17:51:49 -0400 Message-ID: From: Eric Covener To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_deflate and chunked encoding On Sun, Jun 5, 2011 at 5:40 PM, Xavier Noria wrote: > On Sun, Jun 5, 2011 at 11:36 PM, Eric Covener wrote: > >>> If Passenger has to dechunk, and we want a chunked compressed >>> response, and Apache is the one responsible for doing that, how should >>> we signal Apache that we want compression and streaming for that >>> particular response. >> >> This is the main path of just configuring mod_deflate. =A0Nothing else >> required. =A0Only passenger cares how passenger decided what the content >> of the response was, to everyone else it's just buckets of data. >> >> "Streaming" just means the module that generates the content of the >> response routinely hands some data off to Apache to send off to the >> client rather then e.g. waiting until it's 100% done. =A0It's also not >> something you need to configure. > > But there has to be something else, because in streaming I want a > chunked response that should start sending chunks to the client as > soon as possible. > > If the back server sent just 200 bytes in the first chunk, I want > those 200 bytes compressed and forwarded to the client exactly now. In > particular there's no Content-Length computed. Does passenger pass the first 200 bytes to Apache? Does it follow them with a "flush bucket"? Does the protocol passenger uses on the backend allow your app to tell it when to flush? Does the result change when you turn on mod_deflate (the preceding questions are probably best asked on a passenger list, with this final questions answer in-hand) --=20 Eric Covener covener@gmail.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org