Skip to content

Commit 14dd44a

Browse files
copercinime-no-dev
authored andcommitted
Reduce net_would_block calls in handshake verification (espressif#795)
This reduce net_would_block calls and CPU utilization
1 parent c1ce87e commit 14dd44a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFiClientSecure/src/ssl_client.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t p
161161
if (ret != MBEDTLS_ERR_SSL_WANT_READ && ret != MBEDTLS_ERR_SSL_WANT_WRITE) {
162162
return handle_error(ret);
163163
}
164+
vTaskDelay(10 / portTICK_PERIOD_MS);
164165
}
165166

166167

0 commit comments

Comments
 (0)