Skip to content

Websockets Sending Messages Fails Despite Successful Code Execution #1305

@killerwhite

Description

@killerwhite

Hi there,

I am writing to report a problem I encountered while using your websockets library.

I am sending messages to a client using the library and the code appears to be sending them successfully (no exceptions are thrown). But in practice the client is not receiving any WebSocket messages and Wireshark is not capturing any sent WebSocket messages. Moreover, the WebSocketServerProtocol object's state remains at 1 regardless of whether the client receives the WebSocket message or not.

I have included some debugging information below.

I added logging when sending messages to the client on the server side:
{Image 1}

image

When sending succeeds, the connection state is 1:
{Image 2}

2

When sending fails, the connection state remains at 1:
{Image 3}

3

At this point, the settings for my server were as follows:
{Image 4}

image

I removed the "ping_interval=None" setting as shown in Image 5.
{Image 5}

image

After removing the ping_interval configuration, the actual sending failure problem no longer occurs.

I would really appreciate it if you could fix this issue as soon as possible

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions