Skip to content

Add tests for computed write buffer limits in asyncio FlowControlMixin #150315

@azibom

Description

@azibom

The _FlowControlMixin._set_write_buffer_limits() method computes default
values when only high or low is provided:

  • if low is provided and high is None -> high = 4 * low
  • if high is provided and low is None -> low = high // 4
  • default values are (16 * 1024, 64 * 1024)

These behaviors are currently not explicitly covered by tests.

This issue proposes adding tests to verify the computed write buffer
limit behavior and protect against future regressions.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytestsTests in the Lib/test dirtopic-asyncio
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions