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 44456FF0E for ; Mon, 15 Apr 2013 12:38:59 +0000 (UTC) Received: (qmail 51440 invoked by uid 500); 15 Apr 2013 12:38:59 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 51331 invoked by uid 500); 15 Apr 2013 12:38:58 -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 51313 invoked by uid 99); 15 Apr 2013 12:38:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 12:38:57 +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; Mon, 15 Apr 2013 12:38:56 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id CA0042388900; Mon, 15 Apr 2013 12:38:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1467976 - in /httpd/httpd/branches/2.4.x: ./ STATUS modules/cache/cache_storage.c Date: Mon, 15 Apr 2013 12:38:36 -0000 To: cvs@httpd.apache.org From: jim@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130415123836.CA0042388900@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jim Date: Mon Apr 15 12:38:36 2013 New Revision: 1467976 URL: http://svn.apache.org/r1467976 Log: Merge r1452281 from trunk: cache_storage: remove useless test + update function name in debug log + skip as soon as we know headers do not match Submitted by: jailletc36 Reviewed/backported by: jim Modified: httpd/httpd/branches/2.4.x/ (props changed) httpd/httpd/branches/2.4.x/STATUS httpd/httpd/branches/2.4.x/modules/cache/cache_storage.c Propchange: httpd/httpd/branches/2.4.x/ ------------------------------------------------------------------------------ Merged /httpd/httpd/trunk:r1452281 Modified: httpd/httpd/branches/2.4.x/STATUS URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/STATUS?rev=1467976&r1=1467975&r2=1467976&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/STATUS (original) +++ httpd/httpd/branches/2.4.x/STATUS Mon Apr 15 12:38:36 2013 @@ -90,12 +90,6 @@ RELEASE SHOWSTOPPERS: PATCHES ACCEPTED TO BACKPORT FROM TRUNK: [ start all new proposals below, under PATCHES PROPOSED. ] - * cache_storage: remove useless test + update function name in debug log + - skip as soon as we know headers do not match - trunk patch: http://svn.apache.org/viewvc?view=revision&revision=1452281 - 2.4.x patch: trunk patch works - +1: jailletc36, rjung, covener - * use %pm instead of explicit call to apr_strerror (more to be backported but they don't apply out of the box for now) trunk patch: http://svn.apache.org/viewvc?view=revision&revision=1463750 Modified: httpd/httpd/branches/2.4.x/modules/cache/cache_storage.c URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/cache/cache_storage.c?rev=1467976&r1=1467975&r2=1467976&view=diff ============================================================================== --- httpd/httpd/branches/2.4.x/modules/cache/cache_storage.c (original) +++ httpd/httpd/branches/2.4.x/modules/cache/cache_storage.c Mon Apr 15 12:38:36 2013 @@ -263,7 +263,7 @@ int cache_select(cache_request_rec *cach /* isolate header name */ while (*vary && !apr_isspace(*vary) && (*vary != ',')) ++vary; - while (*vary && (apr_isspace(*vary) || (*vary == ','))) { + while (apr_isspace(*vary) || (*vary == ',')) { *vary = '\0'; ++vary; } @@ -283,8 +283,9 @@ int cache_select(cache_request_rec *cach else { /* headers do not match, so Vary failed */ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, - r, APLOGNO(00694) "cache_select_url(): Vary header mismatch."); + r, APLOGNO(00694) "cache_select(): Vary header mismatch."); mismatch = 1; + break; } }