Files
esp-idf/examples/protocols/http_server
Hrushikesh Bhosale 1f44f4022e fix(http_server/async_handler): Fix http_server async handler tests
The async handler CI tests fail intermittently because the TCP
connection from the pytest host to the ESP32 HTTP server times out
or gets refused.

Add a _connect_with_retry() helper that retries the TCP connection
up to 3 times with a 2-second delay between attempts, catching
TimeoutError, ConnectionRefusedError, and OSError.

Extract common server startup waiting into _wait_for_server_ready()
which includes a 2-second stabilization delay after the server
registers its URI handlers before tests begin sending requests.

(cherry picked from commit a665e7410c)
2026-04-17 14:42:15 +05:30
..
2025-03-05 12:08:48 +08:00