mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #15010 from world-direct/feature/reduceTLSspam
Reduce spam on trace because of calling read/write while handshakingpull/15061/head
commit
3305dc1494
|
@ -286,10 +286,10 @@ nsapi_error_t TLSSocketWrapper::continue_handshake()
|
|||
}
|
||||
|
||||
if (ret < 0) {
|
||||
print_mbedtls_error("mbedtls_ssl_handshake", ret);
|
||||
if (ret == MBEDTLS_ERR_SSL_WANT_READ || ret == MBEDTLS_ERR_SSL_WANT_WRITE) {
|
||||
return NSAPI_ERROR_ALREADY;
|
||||
} else {
|
||||
print_mbedtls_error("mbedtls_ssl_handshake", ret);
|
||||
return NSAPI_ERROR_AUTH_FAILURE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue