Commit Graph

1170 Commits

Author SHA1 Message Date
Aditya Patwardhan
b723799c4e Merge branch 'fix/http_server_async_handler_connection_retry_v6.0' into 'release/v6.0'
fix(http_server/async_handler): Fix http_server async handler tests (backport v6.0)

See merge request espressif/esp-idf!47723
2026-05-08 13:33:34 +05:30
Aditya Patwardhan
e1aa234ce4 Merge branch 'fix/ws_echo_server_uri_registration_race_v6.0' into 'release/v6.0'
fix(http_server/ws_echo_server): Fix ws_echo_server test URI registration race condition (backport v6.0)

See merge request espressif/esp-idf!47725
2026-05-08 13:32:47 +05:30
Mahavir Jain
8e68af5c03 Merge branch 'fix/enforce_tls_version_https_request_example_v6.0' into 'release/v6.0'
fix(https_request): enforce tls version for supported ciphersuite example (v6.0)

See merge request espressif/esp-idf!48017
2026-04-29 14:45:20 +05:30
Euripedes Rocha
e65a084dd3 Merge branch 'fix/eth_init_component_v6.0' into 'release/v6.0'
fix(eth/examples): fixed ethernet_init dependency to v1.3.0 (v6.0)

See merge request espressif/esp-idf!47127
2026-04-28 08:54:08 +02:00
Ashish Sharma
9798c62856 fix(https_request): enforce tls version for supported ciphersuite example 2026-04-28 14:28:37 +08:00
Ondrej Kosta
f676162f46 fix(eth/examples): fixed ethernet_init dependency to v1.3.0 2026-04-27 15:53:06 +02:00
Hrushikesh Bhosale
002133e449 fix(http_server/ws_echo_server): Fix ws_echo_server test URI registration race condition
The WebSocket echo server tests connect immediately after seeing
'Starting server on port:' in the device log, but URI handlers
(/ws, /auth) are registered asynchronously after the server starts,
taking 40-660ms depending on config and CI load.

This causes two failures:
1. WebSocket handshake returns 404 Not Found because the URI
   handler is not registered yet when the client connects.
2. WebSocket echo returns wrong data because the server is in a
   partially initialized state.

Wait for 'Returned from app_main()' before connecting, which
guarantees all URI handlers are registered. Add connection retry
with WebSocketBadStatusException handling to WsClient.

Extract _wait_for_server_ready() helper to deduplicate the WiFi
credential input and server readiness logic.

(cherry picked from commit 7a50e3ab04)
2026-04-17 14:44:42 +05:30
Hrushikesh Bhosale
e8360dd844 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
Ashish Sharma
ec72b956d2 feat(esp_https_server): adds support for user callback on handshake failure
Closes https://github.com/espressif/esp-idf/issues/18053
2026-04-12 18:37:23 +08:00
Marius Vikhammer
e741963f13 Merge branch 'ci/common-components-release-v6.0' into 'release/v6.0'
ci: update build-test-rules to use common_components (v6.0)

See merge request espressif/esp-idf!45547
2026-03-23 09:31:28 +08:00
igor.udot
e2a8bbe639 ci: update build-test-rules to use common_components 2026-03-20 15:53:26 +08:00
Ashish Sharma
2eb3c1375f feat(http_server): adds example to test server pong response 2026-03-20 15:10:52 +08:00
Jiang Jiang Jian
c9daea6b54 Merge branch 'feat/improve_ws_server_handshake_handling_v6.0' into 'release/v6.0'
feat(http_server): improve websocket server handling (v6.0)

See merge request espressif/esp-idf!46247
2026-03-20 10:38:23 +08:00
Fu Hanxi
98e407ec45 Merge branch 'ci/improve-tests_v6.0' into 'release/v6.0'
tests: change wifi tests expect timeout to 60 (v6.0)

See merge request espressif/esp-idf!46545
2026-03-20 00:57:25 +01:00
Aditya Patwardhan
931888f3c3 Merge branch 'fix/fix_dynamic_buffer_with_tls1_3_v6.0' into 'release/v6.0'
fix: fixes failing dynamic buffer tests (v6.0)

See merge request espressif/esp-idf!46430
2026-03-19 20:21:58 +05:30
Aditya Patwardhan
305b04da81 Merge branch 'feat/adds_option_to_save_response_headers_v6.0' into 'release/v6.0'
feat(esp_http_client): adds support to save response headers (v6.0)

See merge request espressif/esp-idf!45509
2026-03-19 19:44:27 +05:30
Ashish Sharma
d96e33375c fix: removes deprecated http_crypto sources 2026-03-17 10:45:32 +08:00
Ashish Sharma
79fe9ff741 fix: fixes failing dynamic buffer tests 2026-03-17 10:45:32 +08:00
Fu Hanxi
84d80dd37d tests: change wifi tests expect timeout to 60
- wifi_router
- wifi_ap
- wifi_high_traffic
2026-03-12 15:59:26 +08:00
Mahavir Jain
fb2ebf0c6a Merge branch 'bugfix/esp_local_ctrl_arg_check_v6.0' into 'release/v6.0'
fix(esp_local_ctrl): validate payload_case matches msg_type in command dispatcher (v6.0)

See merge request espressif/esp-idf!45924
2026-03-04 13:09:56 +05:30
Ashish Sharma
222d470312 feat(http_server): improve websocket server handling
1. Adds post handshake callback
2. Removes requirement to handle HTTP_GET message in websocket handler

Closes https://github.com/espressif/esp-idf/issues/18215
2026-03-04 14:00:12 +08:00
hrushikesh.bhosale
8c357f8d7a fix(https_request): Fixed CI failure for https_request example
- Enabled chachapoly ciphersuite from menuconfig, required for
howmyssl URL
2026-03-02 10:58:08 +05:30
Mahavir Jain
439026e5ea docs(protocomm): recommend using security2 scheme for production purpose 2026-02-17 11:46:11 +05:30
Ashish Sharma
c8f1fa86a2 feat(esp_http_client): adds support to save response headers
Closes https://github.com/espressif/esp-idf/issues/17695
2026-02-03 14:40:08 +08:00
hrushikesh.bhosale
760f04392f fix(esp_http_client): Fixed the esp_http_client example test
Expected the negative value for the async req content len
2026-01-27 17:21:19 +05:30
hrushikesh.bhosale
d5cfcc0e0d fix(esp_http_client): Fixed the example pytest
Pytest was expect the positive content length for async req
2026-01-27 17:03:15 +05:30
harshal.patil
3c4dadff0b fix(mbedtls): Support partial hardware AES-GCM and s/w fallback for non-AES ciphers
- Support software-fallback for unsupported hardware AES lengths
2026-01-09 13:55:51 +05:30
Ondrej Kosta
2f5e9cd9b4 fix(ci): re-enabled ESP32P4 tests on different HW vers 2025-12-22 14:43:57 +01:00
Ashish Sharma
b02538834c fix: resolves MR comments 2025-12-20 23:02:25 +08:00
Ashish Sharma
76287081ea feat: code cleanup 2025-12-19 07:29:43 +08:00
Ashish Sharma
88346ccec5 fix: revert back to using mbedtls sha implementation for espcoredump 2025-12-19 07:29:08 +08:00
Ashish Sharma
f306dbea84 feat(mbedtls): migrates ESP-TEE with PSA APIs 2025-12-19 07:28:33 +08:00
Ashish Sharma
c47caf4f0a feat(mbedtls): adds mbedtls alt drivers with PSA 2025-12-19 07:28:33 +08:00
Ashish Sharma
7d17e8a024 feat(mbedtls): adds AES drivers with PSA 2025-12-19 07:28:28 +08:00
Ashish Sharma
a088d2ccdc feat(mbedtls): fix build errors with PSA migration 2025-12-18 21:18:58 +08:00
Ashish Sharma
b4fea9cccc feat(lwip): migrate to to PSA API interface 2025-12-18 21:18:58 +08:00
Aditya Patwardhan
574a60289d feat(protocomm): Migrate to PSA api interface 2025-12-18 21:18:58 +08:00
Bogdan Kolendovskyy
0c910b770f ci(mqtt): Update and fix MQTT SSL test, remove the binary file send/receive stage 2025-12-10 11:27:52 +01:00
Alexey Lapshin
f676a1e76a fix(icmp_echo): fix incorrect test expectation logic 2025-12-06 00:08:36 +07:00
Ondrej Kosta
643b7c93c1 feat(ci): updated Ethernet tests to align with new runners 2025-11-26 13:24:32 +01:00
glmfe
e187d3b259 feat(protocol_examples_common): Use Ethernet Init component
- Refactored protocol_examples_common to use ethernet_init component
2025-11-20 18:57:03 +08:00
0xFEEDC0DE64
813f3f27c7 feat(esp_http_server): Allow the https server to request client certs optionally
Closes https://github.com/espressif/esp-idf/pull/17641
2025-11-18 11:56:41 +08:00
Euripedes Rocha Filho
dcf03ca0d2 remove(mqtt): Moves esp-mqtt to component manager
esp-mqtt is now a managed component at espressif/mqtt
2025-11-14 10:53:56 +01:00
harshal.patil
6815f7a71b test(examples): Fix cert bundle stress test 2025-11-14 09:46:28 +05:30
hrushikesh.bhosale
fea4723a11 fix(http_server): Fixed response status code for temporary redirect
Closes https://github.com/espressif/esp-idf/issues/17791
2025-11-04 15:04:46 +05:30
David Čermák
8a64cc15a5 Merge branch 'feat/netif_mtu_path_disc' into 'master'
[esp_netif]: Support for MTU path discovery

Closes IDFGH-10355 and IDFGH-14560

See merge request espressif/esp-idf!42088
2025-10-24 13:29:03 +08:00
David Cermak
787bb39765 feat(esp_netif): Support posting event on SNTP time update 2025-10-23 13:56:02 +08:00
David Cermak
4c69bf826f feat(esp_netif): Add support for initial MTU in netif config
Closes https://github.com/espressif/esp-idf/issues/15319
2025-10-23 07:41:42 +02:00
Jiang Jiang Jian
93f0ecfe2e Merge branch 'fix/eth_init' into 'master'
fix(examples): fixed examples ethernet_init dependency

Closes IDFCI-4847

See merge request espressif/esp-idf!42770
2025-10-22 02:37:12 +08:00
Ondrej Kosta
6e160e2e47 fix(examples): fixed examples ethernet_init dependency 2025-10-21 13:06:04 +02:00