Skip to content

ESP32/WebSocketClient seems to block for a long time in case of unstable and very slow network connections #911

Open
@mirkosertic

Description

@mirkosertic

I'm using the WebSocketClient with an ESP32. I know that I have a fairly slow and sometimes unstable WiFi connectivity.

Currently it seems that the sendBIN() methods are blocking for a very long time, and is not giving up. Is there a way to indicate a kind of send-timeout for such invocations? I really would like to give up in case of 1000 bytes or so cannot be transferred in under one second.

I know that there is the WEBSOCKETS_TCP_TIMEOUT in 'WebSockets.h', but I don't know if this is the place to configure the send-timeout in case of very slow and unstable connections.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions