Return-Path: X-Original-To: apmail-httpd-cvs-archive@www.apache.org Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D734B17AD4 for ; Sat, 1 Nov 2014 17:58:42 +0000 (UTC) Received: (qmail 91513 invoked by uid 500); 1 Nov 2014 17:58:42 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 91432 invoked by uid 500); 1 Nov 2014 17:58:42 -0000 Mailing-List: contact cvs-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 cvs@httpd.apache.org Received: (qmail 91423 invoked by uid 99); 1 Nov 2014 17:58:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Nov 2014 17:58:42 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Nov 2014 17:58:20 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9179223888A6; Sat, 1 Nov 2014 17:57:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1636001 - in /httpd/httpd/branches/2.4.x: ./ CHANGES STATUS modules/cache/mod_cache.c Date: Sat, 01 Nov 2014 17:57:48 -0000 To: cvs@httpd.apache.org From: covener@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141101175748.9179223888A6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: covener Date: Sat Nov 1 17:57:47 2014 New Revision: 1636001 URL: http://svn.apache.org/r1636001 Log: Merge r1634237 from trunk: fix another case of 304 response sent to an unconditional request Submitted By: covener Reviewed By: covener, jim, ylavic Modified: httpd/httpd/branches/2.4.x/ (props changed) httpd/httpd/branches/2.4.x/CHANGES httpd/httpd/branches/2.4.x/STATUS httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c Propchange: httpd/httpd/branches/2.4.x/ ------------------------------------------------------------------------------ Merged /httpd/httpd/trunk:r1634237 Modified: httpd/httpd/branches/2.4.x/CHANGES URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/CHANGES?rev=1636001&r1=1636000&r2=1636001&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/CHANGES [utf-8] (original) +++ httpd/httpd/branches/2.4.x/CHANGES [utf-8] Sat Nov 1 17:57:47 2014 @@ -2,6 +2,9 @@ Changes with Apache 2.4.11 + *) mod_cache: Avoid a 304 response to an unconditional requst when an AH00752 + CacheLock error occurs during cache revalidation. [Eric Covener] + *) mod_ssl: Move OCSP stapling information from a per-certificate store to a per-server hash. PR 54357, PR 56919. [Alex Bligh , Yann Ylavic, Kaspar Brand] Modified: httpd/httpd/branches/2.4.x/STATUS URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/STATUS?rev=1636001&r1=1636000&r2=1636001&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/STATUS (original) +++ httpd/httpd/branches/2.4.x/STATUS Sat Nov 1 17:57:47 2014 @@ -102,12 +102,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * mod_cache: Restore original request headers when skipping updating the cache due to - a busy/broken CacheLock. Can result in a 304 to an uncoditional request. - trunk patch: http://svn.apache.org/r1634237 - 2.4.x patch: trunk works - +1 covener, jim, ylavic - * mod_proxy_connect: EBCDIC fix for ProxyRemote to HTTPS. PR57092 trunk patch: http://svn.apache.org/r1634425 2.4.x patch: trunk works Modified: httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c?rev=1636001&r1=1636000&r2=1636001&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c (original) +++ httpd/httpd/branches/2.4.x/modules/cache/mod_cache.c Sat Nov 1 17:57:47 2014 @@ -234,6 +234,11 @@ static int cache_quick_handler(request_r ap_log_rerror(APLOG_MARK, APLOG_DEBUG, rv, r, APLOGNO(00752) "Cache locked for url, not caching " "response: %s", r->uri); + /* cache_select() may have added conditional headers */ + if (cache->stale_headers) { + r->headers_in = cache->stale_headers; + } + } } else {