From 931bf95383115166353b92dc184626aa587a47e5 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Thu, 22 Nov 2001 01:40:26 +0000 Subject: [PATCH] return from ssl_callback_LogTracingState if sc->nLogLevel < SSL_LOG_INFO else there are 5 (expensive!) calls made to ssl_var_lookup on every request for info that will never be logged PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92119 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_kernel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ssl/ssl_engine_kernel.c b/modules/ssl/ssl_engine_kernel.c index 569e8c8784..0ac1225b3c 100644 --- a/modules/ssl/ssl_engine_kernel.c +++ b/modules/ssl/ssl_engine_kernel.c @@ -1614,6 +1614,11 @@ void ssl_callback_LogTracingState(SSL *ssl, int where, int rc) if ((sc = mySrvConfig(s)) == NULL) return; + if (sc->nLogLevel < SSL_LOG_INFO) { + /* nothing todo here */ + return; + } + /* * create the various trace messages */ -- 2.40.0