From 14dd44ad06e311657030573174ed0ae8d198bfec Mon Sep 17 00:00:00 2001 From: copercini Date: Mon, 6 Nov 2017 11:28:37 -0200 Subject: [PATCH] Reduce net_would_block calls in handshake verification (#795) This reduce net_would_block calls and CPU utilization --- libraries/WiFiClientSecure/src/ssl_client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/WiFiClientSecure/src/ssl_client.cpp b/libraries/WiFiClientSecure/src/ssl_client.cpp index 7e183f19..c55da2d5 100644 --- a/libraries/WiFiClientSecure/src/ssl_client.cpp +++ b/libraries/WiFiClientSecure/src/ssl_client.cpp @@ -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) { return handle_error(ret); } + vTaskDelay(10 / portTICK_PERIOD_MS); }