Reduce net_would_block calls in handshake verification (#795)

This reduce net_would_block calls and CPU utilization
This commit is contained in:
copercini 2017-11-06 11:28:37 -02:00 committed by Me No Dev
parent c1ce87e0a5
commit 14dd44ad06

View File

@ -161,6 +161,7 @@ int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t p
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 handle_error(ret); return handle_error(ret);
} }
vTaskDelay(10 / portTICK_PERIOD_MS);
} }