websocket client: the client now aborts the connection if send fails.

Closes IDF-1744
pull/5626/head
Marius Vikhammer 2020-05-25 14:59:22 +08:00 zatwierdzone przez bot
rodzic 28b4419c4e
commit 67d7b60f19
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -644,6 +644,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;