Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id EA0AF200828 for ; Fri, 13 May 2016 18:57:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E8B0D16099F; Fri, 13 May 2016 16:57:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3AE641602BE for ; Fri, 13 May 2016 18:57:54 +0200 (CEST) Received: (qmail 36972 invoked by uid 500); 13 May 2016 16:57:53 -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 36960 invoked by uid 99); 13 May 2016 16:57:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2016 16:57:53 +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 9EE9D1A04D6 for ; Fri, 13 May 2016 16:57:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.802 X-Spam-Level: X-Spam-Status: No, score=-0.802 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id viENPll2xv1u for ; Fri, 13 May 2016 16:57:50 +0000 (UTC) Received: from mail-qk0-f176.google.com (mail-qk0-f176.google.com [209.85.220.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 06D725F297 for ; Fri, 13 May 2016 16:57:50 +0000 (UTC) Received: by mail-qk0-f176.google.com with SMTP id n63so63920689qkf.0 for ; Fri, 13 May 2016 09:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=Mj8CE0fRbys+DBxrQUoBxyZLk+TyyVI+HRfVAemzdXY=; b=QhqZ8xtKr8pppf+DS8YanLOo1AkudCfeJ6xmJo7ZGNJYixchHqjfktmEyNQTBhRrvG XPfe9uOAgRhuY0vlSmDmfsbqR7zAnxm4Y4qxAFt19oNQND0ZDO6Q55QDkgXZ1MakSC6D RJMiJ7ebhwlR8dKcR+oF3jQFFDrEP23mdAukjPXy2YdpDKLJgyc6J8lJBbcv3zJrSJ0u tup/TCilPKXQEMQEffD33+oxV6uiUDUzQiigp75r6SyEUbWM0981skhsOaZJiDt5eAxJ fdzHn4kqQnI/pCxIlQp+VIN+HxMKEr6G5NnMOAxyal4/tXcOWb2ViGcbczcCufJfl/Ss G3lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=Mj8CE0fRbys+DBxrQUoBxyZLk+TyyVI+HRfVAemzdXY=; b=YrV6bl+zlKbuXjPGgD5I4PZlSLBXARdYbeY/CoTTEaCdUBSut6ysZW2vNMx9jROeoO ph0tm9xybi8yUH8j6HPfsuHZMFVjXL8hfLCsBnywFD46RaC6Ed/cA37pn8a3giMZTRrX wc5otdKSZtAq5X5YZ+ZlKcfhD3f7qKGKQaCEPmqcM0bN5p2tHRifEkEz4eDyok0PJ57w Qi8/SS7HyuxmeUMTUTQsaKxjNwLw6/8Fzwg69WNxI827PpjKYIAgkCnuAONughMq3EZ5 g/zyS5QbKASr54OlhzXtdgu8N4bVggYoy7YFP3rKOV1wQbyC8HD7Qs2pFTa22DW40fmp DpnA== X-Gm-Message-State: AOPr4FXOpykjHSQ5TFlB2DPRwHZQskh8habLzVM1f8GWWBO7Y92y3FHbEnPOUsYT4mgqz7lAjBBt7h7VZGX7qA== MIME-Version: 1.0 X-Received: by 10.55.203.16 with SMTP id d16mr10010182qkj.116.1463158669141; Fri, 13 May 2016 09:57:49 -0700 (PDT) Received: by 10.55.41.24 with HTTP; Fri, 13 May 2016 09:57:49 -0700 (PDT) In-Reply-To: References: <20160508135338.9C0BD3A0336@svn01-us-west.apache.org> Date: Fri, 13 May 2016 18:57:49 +0200 Message-ID: Subject: Re: svn commit: r1742822 - /httpd/httpd/trunk/modules/http/http_core.c From: Yann Ylavic To: httpd-dev Content-Type: text/plain; charset=UTF-8 archived-at: Fri, 13 May 2016 16:57:55 -0000 On Fri, May 13, 2016 at 6:49 PM, William A Rowe Jr wrote: > On Fri, May 13, 2016 at 11:41 AM, Yann Ylavic wrote: >> >> On Thu, May 12, 2016 at 4:55 PM, William A Rowe Jr >> wrote: >> > >> > I'd explained in another thread this week why this patch is invalid, >> > and I've gone ahead and reverted. >> > >> > We agreed there is a defect here, what about the attached fix? >> >> Looks good, if something bad happened in ap_read_request() we already >> have responded with ap_send_error_response(). >> >> What may be missing is reporting SERVER_BUSY_WRITE (with the >> partial/bad request) in ap_send_error_response(), and then we'd >> probably don't need to pass r for SERVER_BUSY_LOG in the error paths >> of ap_read_request(). > > > AIUI, at that point in the code, if there was an error response it was > already > sent, the other paths appear to be simple disconnection states with no > further > logging or socket activity, other than forcing lingering close... perhaps. That's the case where reading the request line fails for anything but URI_TOO_LARGE, BAD_REQUEST or REQUEST_TIMEOUT. But for the above cases or an error while reading/validating the headers or running post_read_request(), we finally call ap_die() or ap_send_error_response(). I think we should report SERVER_BUSY_WRITE with r before those calls, and use NULL for SERVER_BUSY_LOG.