s2n-quic icon indicating copy to clipboard operation
s2n-quic copied to clipboard

Allow updating connection limits dynamically

Open zz85 opened this issue 1 year ago • 1 comments

Problem:

Currently there's no way to update Limits from the limiter after connection is established.

One use case would to updating stream limits or send sizes after there's sufficient information about a connection like the intended server_name to start applying a different set of limits.

Solution:

An API to allow updating connection limits

Requirements / Acceptance Criteria:

Out of scope:

zz85 avatar Aug 03 '22 19:08 zz85

It's unlikely we'll enable dynamic limits at arbitrary points in the connection lifecycle, as we quickly run into accounting issues. For example, what happens when the limits drop which causes the library or peer to violate them?

I think a good approach would allow the connection limiter to update the limits for the connection right before we create the application space. Things like server name and application protocol would be available at this point.

camshaft avatar Aug 03 '22 20:08 camshaft