summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-03-26 01:11:10 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2020-07-08 22:51:31 -0400
commitb33b6f9121c22ea6a592d959d79ef54713afe4a6 (patch)
tree39b3eac10aa579f54a81a3988d85e47f248377f8
parent446866333fc7d180d7d0ab22240107e9a85e7051 (diff)
downloadlighttpd-git-b33b6f9121c22ea6a592d959d79ef54713afe4a6.tar.gz
[mod_openssl] do not log ECONNRESET unless debug
do not log ECONNRESET to errorlog unless debug.log-ssl-noise = "enable"
-rw-r--r--src/mod_openssl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mod_openssl.c b/src/mod_openssl.c
index 1cf6dd76..00873593 100644
--- a/src/mod_openssl.c
+++ b/src/mod_openssl.c
@@ -1968,6 +1968,9 @@ connection_read_cq_ssl (connection *con, chunkqueue *cq, off_t max_bytes)
}
switch(oerrno) {
+ case ECONNRESET:
+ if (!hctx->conf.ssl_log_noise) break;
+ /* fall through */
default:
/* (oerrno should be something like ECONNABORTED not 0
* if client disconnected before anything was sent