[mod_openssl] do not log ECONNRESET unless debug

do not log ECONNRESET to errorlog unless debug.log-ssl-noise = "enable"
This commit is contained in:
Glenn Strauss 2020-03-26 01:11:10 -04:00
parent 446866333f
commit b33b6f9121
1 changed files with 3 additions and 0 deletions

View File

@ -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