quinn
quinn copied to clipboard
Calling `UdpStocketState::set_gro` from `quinn`
We are trying to update our dependency on quinn and would like to re-enable GRO on Windows, since we haven't encountered the problems described in https://github.com/quinn-rs/quinn/issues/2041 (yet..?).
https://github.com/quinn-rs/quinn/pull/2092 introduced the "off by default" behavior and a UdpSocketState::set_gro setter, but it looks like it cannot be easily called from quinn directly, because we never have access to this structure.
I've researched different options and would like to have some feedback about the best way to move forward:
- we could add a
set_gromethod on theAsyncUdpSockettrait - if this is not acceptable for
quinn(because it leaks a lower-level abstraction), the user could create a new runtime type and overrideRuntime::wrap_udp_socketto instantiate theUdpSocketStateand callset_grobefore returning thedyn AsyncUdpSocket.
@djc @mxinden @Ralith