Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D86031812B for ; Fri, 23 Oct 2015 19:18:32 +0000 (UTC) Received: (qmail 64111 invoked by uid 500); 23 Oct 2015 19:18:16 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 64045 invoked by uid 500); 23 Oct 2015 19:18:16 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 64035 invoked by uid 99); 23 Oct 2015 19:18:16 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Oct 2015 19:18:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 123891A2B54 for ; Fri, 23 Oct 2015 19:18:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.109 X-Spam-Level: X-Spam-Status: No, score=-0.109 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=ptc.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FPCxWbrVoce3 for ; Fri, 23 Oct 2015 19:18:07 +0000 (UTC) Received: from mx2.ptc.com (mx2.ptc.com [12.11.148.189]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id CF81B42B79 for ; Fri, 23 Oct 2015 19:18:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ptc.com; s=ptc; t=1445627887; x=1477163887; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=I+gUDmGXA9dOyflQBP9ev9sDwDSePGYhBf8C1OoOjZo=; b=rRJEbFQkUHTn2YfwX4tQJZlRaPo9C/O9DATdug4VVFDnvRiZf363LyS/ HrfXc0xcwDaF+mP4fWPgMmUpYpwcfyIUjF2Ih8K4CrQUVtSYhQxsLyFn1 8i4a0WekdVPIrY08DDZMpEZ9FhcspqdUdnLknMAzuJS3ojxE1yAPf6SpM I=; X-IronPort-AV: E=Sophos;i="5.20,188,1444708800"; d="scan'208";a="28644648" Received: from hq-x10prdhub1.ptcnet.ptc.com ([132.253.198.27]) by mx2-int.ptc.com with ESMTP/TLS/AES128-SHA; 23 Oct 2015 15:17:56 -0400 Received: from awang.ptcnet.ptc.com (132.253.8.73) by int-mail-hub1.ptcnet.ptc.com (132.253.201.252) with Microsoft SMTP Server id 14.3.123.3; Fri, 23 Oct 2015 15:17:56 -0400 Subject: Re: [users@httpd] Chunked transfer delay with httpd 2.4 on Windows. To: References: <5625642E.30708@ptc.com> <562668DA.5060804@ptc.com> <56269CBD.5060701@ptc.com> <5627853C.4040006@apache.org> <5627A72B.7050302@ptc.com> <5627A8E4.4010108@ptc.com> <5628E7A9.2060708@ptc.com> From: Andy Wang Message-ID: <562A87E4.9020406@ptc.com> Date: Fri, 23 Oct 2015 14:17:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [132.253.8.73] On 10/22/2015 04:50 PM, Yann Ylavic wrote: > On Thu, Oct 22, 2015 at 3:42 PM, Andy Wang wrote: >> >> Tested with the patch and looks good. > > Not that much actually, the patch fails to consume the CRLFs, and > hence can end up in an infinite loop. > > So I'm attaching a new one here (committed in trunk with a larger > scope, this version is for 2.4.x and limited to your use case). > Could you give it a (new) try please (I have already done some testing > but it's probably worth passing your tests, before I can propose its > backport to 2.4.x)? > While the previous patch could not handle more than a single > (trailing) [CR]LF, this new one should (up to ten, which is the new > limit for tolerated blank lines in between requests). The new one works as well. My VMs that I use for my actual test cases are all in a logistics nightmare right now, so I can't do anything more thorough than the specific point test, but hopefully when I build the next httpd that contains this they'll be back up and I can put things through a more thorough cycle. I'm pretty much only equipped to reproduce the specific problem right now. That said, this whole, why does it only happen on Windows and why can't I simulate a request using another client has been bugging me, so I decided to go back to pre-patch and enable dumpio and try to compare the two. guess what I cannot get the problem to occur with dumpio enabled now. As soon as it's enabled, the requests respond immediately. Disable dumpio, 5000ms. I give up. The plugin developer fixed their plugin, you made apache more accepting (thank you very much again), and I'm going to just pretend this whole issue never happened :) Andy