Skip to content

Conversation

@camshaft
Copy link
Contributor

@camshaft camshaft commented Sep 25, 2025

Description of changes:

This change implements notifications on streams being dropped in the accept queue. The current implementation does not send anything when this happens and the client times out.

The other thing I noticed while implementing this change is that the flow window negotiated to the client is very large, meaning while the recv worker is processing packets while it's waiting in the accept queue it's also increasing the flow window. If the stream never gets accepted by the application then this is wasted work. As part of this change, I've clamped the initial window to 10x the MTU by default, with a configurable separate limit on the server builder. Once the server accepts the stream, it's able to increase the window to the larger value and notify the client.

Testing:

I've implemented a test harness showing all of these changes working, both with small and large streams.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft camshaft force-pushed the camshaft/dc-conn-refused branch 6 times, most recently from f3dff0a to f039029 Compare September 26, 2025 13:22
@camshaft camshaft force-pushed the camshaft/dc-conn-refused branch from f039029 to 67bd170 Compare September 26, 2025 13:54
@camshaft camshaft marked this pull request as ready for review September 26, 2025 14:17
@camshaft camshaft merged commit 1cca93b into main Sep 26, 2025
175 of 177 checks passed
@camshaft camshaft deleted the camshaft/dc-conn-refused branch September 26, 2025 15:27
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.

2 participants