mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-15 19:42:09 +02:00
websocket client: the client now aborts the connection if send fails.
Closes IDF-1744 * Original commit: espressif/esp-idf@6bebfc84f3
This commit is contained in:
committed by
gabsuren
parent
7a5b2d5a7d
commit
f8e3ba7813
@ -663,6 +663,7 @@ static int esp_websocket_client_send_with_opcode(esp_websocket_client_handle_t c
|
||||
if (wlen <= 0) {
|
||||
ret = wlen;
|
||||
ESP_LOGE(TAG, "Network error: esp_transport_write() returned %d, errno=%d", ret, errno);
|
||||
esp_websocket_client_abort_connection(client);
|
||||
goto unlock_and_return;
|
||||
}
|
||||
current_opcode = 0;
|
||||
|
Reference in New Issue
Block a user