Skip to content

WebSocket connect blocking function, causing taskWdt reboot error #78

@ONLYstcm

Description

@ONLYstcm

Describe the bug
WebSocket connect seems to be blocking function. If one tries to connect to a URL with the connect() function and the server reaches a processing error or has a long delay in processing the URL. A response is not given. The function hangs and eventually the ESP32 watchdog triggers a reset.

To Reproduce
Steps to reproduce the behavior.

  • Create WS server that receives url and processes it. Include long delay in process or runtime error in processing
  • Try to connect to WS with ESP32

Expected behavior
I believe their should be connection timeout limit that will abort a connection request if a response is not received in time. Otherwise, this vulnerability could be exploited by servers to reset ESP32 or freeze them.

Additional context
Thanks for making this library :)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions