Skip to content

Receive backpressure support #1020

@ambrop72

Description

@ambrop72

Hi,
Is is possible for the application to indicate that it isn't ready to receive any more messages at this time. so the library will stop recv()-ing data from the client, until the application indicates it is ready to receive more?
Suppose that I am putting received data into a queue and I have another thread that is processing from the queue, and it is resource-intensive. I can't let the queue grow without bounds if data is being received faster than it is being processed. I need to pause receiving data until the queue has drained sufficiently.

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