Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DD331863F for ; Wed, 13 May 2015 14:52:02 +0000 (UTC) Received: (qmail 42739 invoked by uid 500); 13 May 2015 14:52:02 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 42666 invoked by uid 500); 13 May 2015 14:52:02 -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 42656 invoked by uid 99); 13 May 2015 14:52:02 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 May 2015 14:52:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 734FDC4817 for ; Wed, 13 May 2015 14:52:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.139 X-Spam-Level: X-Spam-Status: No, score=-0.139 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.038, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id W7OXk7VbQUQy for ; Wed, 13 May 2015 14:52:00 +0000 (UTC) Received: from mail-ig0-f175.google.com (mail-ig0-f175.google.com [209.85.213.175]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 5374621784 for ; Wed, 13 May 2015 14:51:59 +0000 (UTC) Received: by igbsb11 with SMTP id sb11so47012477igb.0 for ; Wed, 13 May 2015 07:51:58 -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 :content-type; bh=Dp8TYA89fTxgTWJ/l0BJoAn2El9WDSDkc3hyVitIXC4=; b=GaQxp32Z7q4JCSK3l63uCY6gmCz1on8dynqADGmCcoy9HDagBfWbbXq/sP5mo0X9Iq /atcTYSEpSl12xd51wQWNGOqgoQE2D6MfU6D4/UzE2oEf9CpdXPrmIsiTjaYVirSvaFk 1M4yAqyuO4HupwAoyIyDtn/9NePDSUSW19d67DVJF6jkz3GC3gQtu7zsv/iwVXGriYF5 hGcmKhoqhrtRaSmnU/BeWUAOlecqydekwEfHNNtENbP06FXCxRB8W1Zfcpzz7scCBFoL p4c6ES3Rc7ej35t8H8FOUGbDQ6uMfXmJclktElahQfW/4QlyMBRq8WNZQw7qhI9/cGha GBPg== MIME-Version: 1.0 X-Received: by 10.107.46.218 with SMTP id u87mr27825602iou.68.1431528718192; Wed, 13 May 2015 07:51:58 -0700 (PDT) Received: by 10.79.71.4 with HTTP; Wed, 13 May 2015 07:51:58 -0700 (PDT) In-Reply-To: <55535F91.2010805@gmail.com> References: <20150512185930.2215BAC09F8@hades.apache.org> <55526794.3030908@gmail.com> <555344D2.7030609@gmail.com> <55535F91.2010805@gmail.com> Date: Wed, 13 May 2015 16:51:58 +0200 Message-ID: Subject: Re: svn commit: r1679032 - in /httpd/httpd/trunk: CHANGES docs/manual/mod/mod_ssl.xml modules/ssl/mod_ssl.c modules/ssl/ssl_engine_config.c modules/ssl/ssl_private.h modules/ssl/ssl_util_stapling.c From: Yann Ylavic To: httpd Content-Type: text/plain; charset=UTF-8 On Wed, May 13, 2015 at 4:28 PM, Jeff Trawick wrote: > On 05/13/2015 08:59 AM, Yann Ylavic wrote: >> >> On Wed, May 13, 2015 at 2:34 PM, Jeff Trawick wrote: >>> >>> Thanks again! >> >> You're welcome ;) >> >> WDYT of the following? >> (cosmetic only, but helps read/reuse-ability a bit) >> >> Index: modules/ssl/ssl_util_stapling.c >> =================================================================== >> --- modules/ssl/ssl_util_stapling.c (revision 1679195) >> +++ modules/ssl/ssl_util_stapling.c (working copy) >> @@ -250,13 +250,11 @@ static BOOL stapling_cache_response(server_rec *s, >> >> i2d_OCSP_RESPONSE(rsp, &p); >> >> - if (mc->stapling_cache->flags & AP_SOCACHE_FLAG_NOTMPSAFE) >> - stapling_cache_mutex_on(s); >> + stapling_cache_mutex_on(s); >> rv = mc->stapling_cache->store(mc->stapling_cache_context, s, >> cinf->idx, sizeof(cinf->idx), >> expiry, resp_der, stored_len, pool); >> - if (mc->stapling_cache->flags & AP_SOCACHE_FLAG_NOTMPSAFE) >> - stapling_cache_mutex_off(s); >> + stapling_cache_mutex_off(s); > > > At the moment I very slightly prefer seeing the reminder that there isn't > always a mutex, but I won't care before long. I prefer that this matches > the implementation of the session cache mutex on where the socache flag is > checked, but if it makes you happy and you change the session cache > equivalent to match then go for it :) Nope, I have no strong opinion either, let's keep it as is, that makes sense.