xutao a453ca1f38 fix(websocket): Prevent crash on network disconnect during send
When WiFi disconnects, `esp_websocket_client_task` continues polling
`esp_transport_poll_read()` with a default 1-second timeout.
If a timeout triggers `esp_websocket_client_abort_connection`,
certain resources are released.
However, if `esp_websocket_client_send_with_exact_opcode`
is still blocked at this point, it will cause a crash
when it times out and accesses the released handle.
This fix prevents potential crashes by ensuring proper
synchronization between abort and send functions.

Merges: https://github.com/espressif/esp-protocols/pull/629
2024-10-31 11:33:26 +01:00
2023-03-31 12:04:46 +04:00

Collection of protocol components for ESP-IDF

How to use

The ESP-Protocols repository contains a collection of protocol components for ESP-IDF. Additionally, each component is available in IDF Component Registry. Please refer to instructions in ESP-IDF

Components

esp_modem

mDNS

esp_websocket_client

ASIO port

esp_mqtt_cxx

console_simple_init

console_cmd_ping

console_cmd_ifconfig

console_cmd_wifi

mbedtls_cxx

mosquitto

Description
Collection of ESP-IDF components related to networking protocols
Readme 43 MiB
Languages
C 56.5%
C++ 35.6%
Python 4.4%
CMake 2.3%
Shell 0.7%
Other 0.5%