[mod_mbedtls] quiet CLOSE_NOTIFY after conn reset

do not log error after connection reset
This commit is contained in:
Glenn Strauss 2020-10-09 16:24:22 -04:00
parent f846a392d5
commit 496cd8ff44
1 changed files with 2 additions and 0 deletions

View File

@ -2094,6 +2094,8 @@ mod_mbedtls_close_notify (handler_ctx *hctx)
default:
elog(hctx->r->conf.errh, __FILE__, __LINE__, rc,
"mbedtls_ssl_close_notify()");
__attribute_fallthrough__
case MBEDTLS_ERR_NET_CONN_RESET:
mbedtls_ssl_session_reset(&hctx->ssl);
mod_mbedtls_detach(hctx);
return -1;