Return ESP_ERR_HTTP_EAGAIN in http client perform

This commit is contained in:
2024-01-30 15:41:31 +01:00
parent 228bc8a793
commit b8019d9490

View File

@ -1477,7 +1477,7 @@ esp_err_t esp_http_client_perform(esp_http_client_handle_t client)
}
//} while (client->process_again);
//return ESP_OK;
return client->process_again ? EAGAIN : ESP_OK;
return client->process_again ? ESP_ERR_HTTP_EAGAIN : ESP_OK;
}
int64_t esp_http_client_fetch_headers(esp_http_client_handle_t client)