quinn
quinn copied to clipboard
support of resetting the congestion controller?
is there an API like this for example https://github.com/google/quiche/blob/1da1f6810fe80d4e2126ce98a9e2101d7dae92aa/quiche/quic/core/quic_sent_packet_manager.h#L457
to reset the congestion controller on the fly?
- What I wanted to do is, I establish a connection to a remote
- negotiate a congestion algo with remote
- client side reset the congestion algo after connection established
Now I find the Endpoint has a https://docs.rs/quinn/0.11.5/quinn/struct.Endpoint.html#method.set_default_client_config which can be set before the connection established.
And the TransportConfig has a https://docs.rs/quinn/0.11.5/quinn/struct.TransportConfig.html#method.congestion_controller_factory - could be useful by building a new Factory with a Mutex with a congestion algo that is later mutated, but
- does this work, e.g. does changing the factory affect any new outgoing client connections?
- the factory signature
fn buildis non async and it's quite hard to work with async runtime and mutexts
or is there another way to do it?
tyty