Skip to content

Commit 3bbe73a

Browse files
committed
fix(websocket): Fix the bug related to multi-threaded access to transport and close contention.
1 parent d5db1fc commit 3bbe73a

File tree

2 files changed

+95
-189
lines changed

2 files changed

+95
-189
lines changed

components/esp_websocket_client/Kconfig

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,4 @@ menu "ESP WebSocket client"
77
Enable this option will reallocated buffer when send or receive data and free them when end of use.
88
This can save about 2 KB memory when no websocket data send and receive.
99

10-
config ESP_WS_CLIENT_SEPARATE_TX_LOCK
11-
bool "Enable separate tx lock for send and receive data"
12-
default n
13-
help
14-
Enable this option will use separate lock for send and receive data.
15-
This can avoid the lock contention when send and receive data at the same time.
16-
17-
config ESP_WS_CLIENT_TX_LOCK_TIMEOUT_MS
18-
int "TX lock timeout in milliseconds"
19-
depends on ESP_WS_CLIENT_SEPARATE_TX_LOCK
20-
default 2000
21-
help
22-
Timeout for acquiring the TX lock when using separate TX lock.
2310
endmenu

0 commit comments

Comments
 (0)