Skip to content

[v0.x] Remove unbounded queue on server-side stream reception#545

Closed
timbertson wants to merge 2 commits intotypelevel:series/0.xfrom
timbertson:recv-backpressure
Closed

[v0.x] Remove unbounded queue on server-side stream reception#545
timbertson wants to merge 2 commits intotypelevel:series/0.xfrom
timbertson:recv-backpressure

Conversation

@timbertson
Copy link
Contributor

Disappointingly after testing #544, my simple test case of "client sends 2mb chunks as fast as it can, server takes 1s to process each chunk" still died a slightly slower death. Thankfully the fix is just to reuse the nice client-side stream reception code.

I haven't yet checked if this issue exists on main, but I'm recording it as a necessary patch for v0.x to fully support backpressure.

(note: this PR is only about the second commit, the first is already part of #544)

For outgoing streams, this class delays outgoing messages
until the underlying channel has capacity.
@timbertson timbertson changed the title Remove unbounded queue on server-side stream reception [v0.x] Remove unbounded queue on server-side stream reception Jul 3, 2022
@timbertson timbertson closed this Jul 26, 2022
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