Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 10986 invoked from network); 13 Nov 2010 12:28:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 13 Nov 2010 12:28:40 -0000 Received: (qmail 71379 invoked by uid 500); 13 Nov 2010 12:29:11 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 71186 invoked by uid 500); 13 Nov 2010 12:29:10 -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 71178 invoked by uid 99); 13 Nov 2010 12:29:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 12:29:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of trawick@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Nov 2010 12:29:02 +0000 Received: by eya25 with SMTP id 25so2800389eya.18 for ; Sat, 13 Nov 2010 04:28:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=PKFw1MU2/L9hY8qKEEWtIJkLp6P1VnLPY6cnoVK5uNI=; b=N5wPKhwzzGornuEOxWiJQtognCu9qk1L7xZ5APftE7Xn+5GmZPIlHbfqiR4eZeCgdI 2nA+eiPsemyPnbGBC29Z3Rq5gpiZZx7QM485gzphd8jXstW0UsHSQpWwUIt4OTSZHg+u BL2yIWXyMH5ORhIdPA+pWI7zA/LWNR5rfYZ4I= 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=xgVTGKi+xDw+HaObdAL8UqJIq+UyW51CekyTnNSX1Jp4+qEdhL07jqY/BrSfWmqwAK ykPEUwMfYBUC4goMG/VKuGqhb0C61v/XOneLTtQ+z99e2KUGMw552AbB7BTzktZDFCVs l2xB5RvkiSFTOXFLSa6i8eaVINrESpnDFG8xM= MIME-Version: 1.0 Received: by 10.213.22.66 with SMTP id m2mr3077703ebb.56.1289651322082; Sat, 13 Nov 2010 04:28:42 -0800 (PST) Received: by 10.213.31.82 with HTTP; Sat, 13 Nov 2010 04:28:42 -0800 (PST) In-Reply-To: <20101112232203.62e99611@baldur> References: <20101112232203.62e99611@baldur> Date: Sat, 13 Nov 2010 07:28:42 -0500 Message-ID: Subject: Re: Error returned on broken chunking From: Jeff Trawick To: dev@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 On Fri, Nov 12, 2010 at 6:22 PM, Nick Kew wrote: > I've just been failing to diagnose someone on IRC's problem > with httpd returning 503 (Service Unavailable). > > A look at the source turns up just one usage outside the > script and proxy paths: in ap_http_filter, it returns > SERVICE_UNAVAILABLE on encountering a chunked encoding error. > This looks like a bug to me: surely that should return 400 > on bad request from the client. > > The other case would be reading broken chunking coming from > a backend when 502 (not 503) looks correct. =A0But that's > only really useful for logging, as it's unlikely to be > encountered before the response status has been sent > down the wire. > > Any strong rationale for 503, or should I just change > it to 400? change it