wolfSSL: Log if wolfSSL_shutdown() succeeds after retrying
authorFabian Keil <fk@fabiankeil.de>
Sun, 31 Mar 2024 11:54:18 +0000 (13:54 +0200)
committerFabian Keil <fk@fabiankeil.de>
Wed, 26 Jun 2024 13:36:44 +0000 (15:36 +0200)
wolfssl.c

index 7f6c964..0204845 100644 (file)
--- 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);
+   }
 }