aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-08-24 16:53:02 -0700
committerGarrett D'Amore <garrett@damore.org>2025-08-25 06:15:59 -0700
commitb1ece6af107958d9d3935586778184763a44f5ee (patch)
tree0c5003572fd6de692100826b3c6b7f19c8e493b2 /src/supplemental
parentb2bb5c7882fb29e842caa5cc05c2181a0e76d689 (diff)
downloadnng-b1ece6af107958d9d3935586778184763a44f5ee.tar.gz
nng-b1ece6af107958d9d3935586778184763a44f5ee.tar.bz2
nng-b1ece6af107958d9d3935586778184763a44f5ee.zip
MbedTLS: CLOSE NOTIFY is not not really an error.
The ECONNREFUSED result was causing consternation for some consumers.
Diffstat (limited to 'src/supplemental')
-rw-r--r--src/supplemental/tls/mbedtls/mbedtls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supplemental/tls/mbedtls/mbedtls.c b/src/supplemental/tls/mbedtls/mbedtls.c
index 239f29fa..949f06d9 100644
--- a/src/supplemental/tls/mbedtls/mbedtls.c
+++ b/src/supplemental/tls/mbedtls/mbedtls.c
@@ -164,7 +164,7 @@ static struct {
#ifdef MBEDTLS_ERR_SSL_NO_USABLE_CIPHERSUITE
{ MBEDTLS_ERR_SSL_NO_USABLE_CIPHERSUITE, NNG_EPEERAUTH },
#endif
- { MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY, NNG_ECONNREFUSED },
+ { MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY, NNG_ECLOSED },
{ MBEDTLS_ERR_SSL_ALLOC_FAILED, NNG_ENOMEM },
{ MBEDTLS_ERR_SSL_TIMEOUT, NNG_ETIMEDOUT },
{ MBEDTLS_ERR_SSL_CONN_EOF, NNG_ECLOSED },