From 04ab204c8030fad8cf5846c5b842b62bf9768ee6 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 31 Mar 2024 13:54:18 +0200 Subject: [PATCH] wolfSSL: Log if wolfSSL_shutdown() succeeds after retrying --- wolfssl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wolfssl.c b/wolfssl.c index 7f6c9646..02048453 100644 --- a/wolfssl.c +++ b/wolfssl.c @@ -991,6 +991,11 @@ static void shutdown_connection(WOLFSSL *ssl, const char *type) type, fd, shutdown_attempts, ret, error, wolfSSL_ERR_error_string((unsigned long)error, buffer)); } + else if (shutdown_attempts > 1) + { + log_error(LOG_LEVEL_CONNECT, "Succeeded to shutdown %s connection " + "on socket %d after %d attempts.", type, fd, shutdown_attempts); + } } -- 2.39.2