-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings #10
Comments
following the proposal:
let builder = Connection::builder()
.max_field_section_size(1024 * 64)
.qpack_max_table_capacity(4096);
let srv1 = builder.handshake(server1)
let srv2 = builder.handshake(server2) |
Yea, like @jxs mentioned, the builder in |
Okay, that's fine to do as it's done in |
@seanmonstar's proposal contains a builder API for connection that would accept the few settings available defined by HTTP/3, and QPACK:
While this is clearly an ergonomic advantage for the user, I think we should also have a
Settings
type:ConnecitonBuilder::handshake()
could take&self
instead ofself
Settings
(of which parameters need to be bound-checked).The QPACK settings are not to be neglected even if the plan is not to integrate QPACK for now because it blocks streams: Headers are always encoded with QPACK, what changes when disabling it is that there is no dynamic table in the encoding game. This configuration is linked to qpack's
SETTINGS_QPACK_MAX_TABLE_CAPACITY
: a value of0
means this is disabled.The
Settings
type, available from a builder-pattern thing, can be passed when building a connection, like so:I've got a similar type in quinn_h3::Settings, but the ergonomics are not that great.
The text was updated successfully, but these errors were encountered: