After migrating from ESP-IDF 4.3.4 to 5.4.1, my HTTPS download using esp_http_client became extremely slow, and I’m now getting this error:
Code: Select all
E (...) transport_base: esp_tls_conn_read error, errno=No more processesI'm using PSRAM and HTTP_TRANSPORT_OVER_SSL. Free heap seems fine, and I already tried increasing buffer sizes.
Has anything changed in esp_http_client or TLS behavior in 5.4.1 that could cause this?
This is the http config I'm using:
Code: Select all
HTTP_generic_event_t xEvent = {0};
esp_http_client_config_t xConfig = {0};
xConfig.url = fileDataInfo->url;
xConfig.is_async = false;
xConfig.event_handler = HttpApp_xEventHandler;
xConfig.user_data = &xEvent;
xConfig.cert_pem = Http_pcCertificate();
xConfig.transport_type = HTTP_TRANSPORT_OVER_SSL;
xConfig.timeout_ms = HTTP_CONN_TIMEOUT;
xConfig.buffer_size = 1024;
xConfig.buffer_size_tx = 1024;
esp_http_client_handle_t xClient = esp_http_client_init(&xConfig);
err = esp_http_client_perform(xClient);