Skip to content

recv may wait indefinitely in a SUB socket #159

Open
@poyea

Description

@poyea

The issue is initially discussed on Discord. This issue is for future tracking and notes. This may be a bug or it may not.

The issue can be reproduced by removing async_helpers::sleep in examples/stock_server.rs. Then, start the examples and the client will wait for data. Only the first 128 frames are received on the client.

However, if we change that to wait for even 1ns, the client will receive data properly. After an initial search, I found that Poll::Pending is somehow polled from the ready_queue and hence it is being propagated.

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