Skip to content

Allow sending 0-byte DATA frames when flow-control window is negative#1314

Open
lagemeet wants to merge 1 commit intopython-hyper:masterfrom
lagemeet:fix-flow-control-0-byte-data
Open

Allow sending 0-byte DATA frames when flow-control window is negative#1314
lagemeet wants to merge 1 commit intopython-hyper:masterfrom
lagemeet:fix-flow-control-0-byte-data

Conversation

@lagemeet
Copy link
Copy Markdown

@lagemeet lagemeet commented May 6, 2026

fix empty 0-byte DATA frame broke with FlowControlError

error
Cannot send 0 bytes, flow control window is -49151

RFC allows empty END_STREAM even if window is negative

Frames with zero length with the END_STREAM flag set (that
is, an empty DATA frame) MAY be sent if there is no available space
in either flow-control window.

allow 0-byte frames even when window < 0
only enforce flow-control check if frame_size > 0
skip negative window assert for empty payload in connection.py + stream.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant