From dev-return-61333-apmail-httpd-dev-archive=httpd.apache.org@httpd.apache.org Mon May 19 16:36:47 2008 Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 99727 invoked from network); 19 May 2008 16:36:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 May 2008 16:36:45 -0000 Received: (qmail 42557 invoked by uid 500); 19 May 2008 16:36:44 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 42504 invoked by uid 500); 19 May 2008 16:36:43 -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 42493 invoked by uid 99); 19 May 2008 16:36:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 09:36:43 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mirkperl@gmail.com designates 66.249.92.174 as permitted sender) Received: from [66.249.92.174] (HELO ug-out-1314.google.com) (66.249.92.174) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2008 16:35:58 +0000 Received: by ug-out-1314.google.com with SMTP id a2so557131ugf.27 for ; Mon, 19 May 2008 09:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=pk2ypXN/NlbOIydmqCKP9+Q2tAQ7soDFuUwbYpPsgqw=; b=Xme3R9uexDoZM9/MVOs7g8xG4SPiCefgDpxcfaZQAhMs1VJc6eL2ggkVVcMxfm5LQHZx86DU4UrinUV1xTU1SRPFSndKkI+QEjhbxSmSQ83WYi6RERCUuKk8z8uss+ni3DCJugeleFmXSjAqLdy9YxOBiOvn4Z10ZFLjIWXY/T4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ng6ISwG+ApJmDj/GhqQmgBTQt77W9zWXNN7I9jK0HaE+8VqoaK47h5TBRG5vSf3PB1xt+4t6KF0J6NsU6XeGOHB/qZy/YXT6gtJJv3cZyZbtVQbEP8H+g4nEkI6XyTrtQXWhHKRX0MFdWYL2y8eBRHaJDfI9fVQCN30yVJEe46k= Received: by 10.66.243.2 with SMTP id q2mr4186670ugh.60.1211214972956; Mon, 19 May 2008 09:36:12 -0700 (PDT) Received: by 10.66.243.10 with HTTP; Mon, 19 May 2008 09:36:12 -0700 (PDT) Message-ID: Date: Mon, 19 May 2008 12:36:12 -0400 From: "Adam Woodworth" To: dev@httpd.apache.org Subject: Re: mod_proxy race condition bug #37770 In-Reply-To: <482F30D2.90507@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080512203154.119e4507@grimnir> <482F30D2.90507@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org >> I tried using the "SetEnv proxy-nokeepalive 1" option in httpd.conf, >> and it cleared up the proxy errors that I was having with an IIS >> backend server, and it may have decreased the proxy errors with Apache >> backend servers as well. >> >> I tried again without the proxy-nokeepalive option, and the proxy >> errors increased. Put it back, they decreased dramatically again. >> >> Turns out that mod_proxy always sends "Connection: Keep-Alive", but >> with "proxy-nokeepalive 1", mod_proxy will always send "Connection: >> Close". >> >> The backends in my case are all responding with "Connection: Close", >> so the backends aren't even allowing Keep-Alives, regardless of >> whether mod_proxy sends "Connection: Close" or "Connection: >> Keep-Alive". > > So you have either set > > force-proxy-request-1.0 and thus are doing HTTP/1.0 requests to your > backend or > your backend has keepalives disabled. No, like I said above, I'm using "proxy-nokeepalive" to force mod_proxy to send "Connection: Close".