Skip to content

Webscoke tAfter updating to version 07b3c of the V1.6 version, there was a disconnection issue. (IDFGH-17104) #992

@PoohWooh

Description

@PoohWooh

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.
  • I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.[x] I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.[x] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.[x] I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.[x] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

Hello, since last month, I have been experiencing frequent automatic disconnection errors when using Websocket to connect to my server on ESP32C3. The error message is as follows: E (84615472) transport_ws: Error read data(0)

E (84615472) transport_ws: Error reading payload data(0)
E (84646412) transport_base: tcp_read error, errno=Software caused connection abort
E (84646412) transport_ws: Error read data(-2)
E (84646413) websocket_client: esp_transport_read() failed with -2, transport_error=ESP_OK, tls_error_code=0, tls_flags=0, errno=113
E (84646445) websocket_client: Error receive data
app: Moonraker WS:disconnected...
app: Moonraker WS finish...
E (84646493) transport_ws: Error transport_poll_write(-1)
E (84646494) websocket_client: esp_transport_write() returned -1, transport_error=ESP_OK, tls_error_code=0, tls_flags=0, errno=9
app: Moonraker WS:---ERROR!!! ... !!! ... !!!
app: Moonraker WS http_code: 0
app: Moonraker WS error_type: 1
app: Moonraker WS tls_last_esp_err: 0x0
appt: Moonraker WS tls_stack_err: 0x0
app: Moonraker WS esp_sock_errno: 0 (Success)
app: WS_ERROR_UNKNOWN
app: Moonraker retry WS_ERROR_UNKNOWN...
E (84646555) websocket_client: esp_websocket_client_abort_connection(258): Websocket already stop

This really confused me. I guess it might be due to some fluctuation in my network connection or because after connecting to the server, the server would send hundreds of bytes of data every second, causing the connection to time out? 

I attempted:

  1. To replace the network and router, but it was ineffective.
  2. To disable IPv6, but it was ineffective.
  3. To try replacing the official development board, but it was also ineffective.
    Could you please help me move forward with this issue? Because I found many related questions in the closed questions section:
    esp_websocket_client: Close connection when wtite timeout which is unexpected (IDFGH-16792) #942
    esp_websocket_client can not send ping request when receive many data (IDFGH-16701) #927

If there are any new developments, feel free to contact me. I'm willing to do something about it.Wish everyone a wonderful day!

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions