quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.76k stars 380 forks source link

Reduce default maximum UDP payload size to the ethernet MTU #1615

Closed Ralith closed 1 year ago

Ralith commented 1 year ago

Drastically reduces the size and sparsity of the quinn receive buffer for no performance cost in typical applications.

Fixes #1608. Alternative to #1611 with less impact on endpoints that are heavily loaded by many peers. Not certain which we should prefer yet; recvmmsg might not be buying us all that much, but neither is supporting jumbo frames (outside of loopback). Maybe we should even do both!

lijunwangs commented 1 year ago

Hi @djc can we backport this to 0.10.x and release a new version on that stream?

djc commented 1 year ago

I think that makes sense, yes.

lijunwangs commented 1 year ago

I think that makes sense, yes.

Okay, I will create a backport PR