Skip to content

Small improvement to set_max_stream_data() #3381

@jesup

Description

@jesup

The set_max_stream_data() function currently uses stream-level Flow Control values only (fc.available(), fc.update(limit)).
I propose moving this to self.avail(), which is total available (min of stream FC, connection FC, TX buffer).

Note that later maybe_emit_writable_event() uses self.avail() and compares it to the low-water mark.

This improves consistency and maintainability of the code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions