Skip to content

Commit 3305dc1

Browse files
authoredSep 9, 2021
Merge pull request ARMmbed#15010 from world-direct/feature/reduceTLSspam
Reduce spam on trace because of calling read/write while handshaking
2 parents 9eed427 + 886b2e5 commit 3305dc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎connectivity/netsocket/source/TLSSocketWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ nsapi_error_t TLSSocketWrapper::continue_handshake()
286286
}
287287

288288
if (ret < 0) {
289-
print_mbedtls_error("mbedtls_ssl_handshake", ret);
290289
if (ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE) {
291290
return NSAPI_ERROR_ALREADY;
292291
} else {
292+
print_mbedtls_error("mbedtls_ssl_handshake", ret);
293293
return NSAPI_ERROR_AUTH_FAILURE;
294294
}
295295
}

0 commit comments

Comments
 (0)