Return ESP_ERR_HTTP_EAGAIN in http client perform

This commit is contained in:
2024-01-30 15:41:31 +01:00
parent 2c2e841f82
commit ef78e303ab

View File

@@ -1489,7 +1489,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)