Merge pull request #15010 from world-direct/feature/reduceTLSspam

Reduce spam on trace because of calling read/write while handshaking
pull/15061/head
Martin Kojtal 2021-09-09 08:34:27 +01:00 committed by GitHub
commit 3305dc1494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -286,10 +286,10 @@ nsapi_error_t TLSSocketWrapper::continue_handshake()
} }
if (ret < 0) { if (ret < 0) {
print_mbedtls_error("mbedtls_ssl_handshake", ret);
if (ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE) { if (ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE) {
return NSAPI_ERROR_ALREADY; return NSAPI_ERROR_ALREADY;
} else { } else {
print_mbedtls_error("mbedtls_ssl_handshake", ret);
return NSAPI_ERROR_AUTH_FAILURE; return NSAPI_ERROR_AUTH_FAILURE;
} }
} }