Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(websocket): release client-lock during WEBSOCKET_EVENT_DATA
This resolves: 1) Deadlock when trying to reserve a lock in WEBSOCKET_EVENT_DATA, but lock is held by a thread trying to send a websocket message. 2) High latency caused by writers serialized with WEBSOCKET_EVENT_DATA while calling esp_websocket_client_send(), even when TCP window has enough space for the entire message being queued to send. Multiple writers are still serialized at fragment boundaries, but only with other writers and websocket error updates. Fixes #625
- Loading branch information