quinn icon indicating copy to clipboard operation
quinn copied to clipboard

support of resetting the congestion controller?

Open ibigbug opened this issue 1 year ago • 4 comments

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?

  1. What I wanted to do is, I establish a connection to a remote
  2. negotiate a congestion algo with remote
  3. 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

  1. does this work, e.g. does changing the factory affect any new outgoing client connections?
  2. the factory signature fn build is non async and it's quite hard to work with async runtime and mutexts

or is there another way to do it?

tyty

ibigbug avatar Oct 19 '24 13:10 ibigbug