cloudflare / quiche

🥧 Savoury implementation of the QUIC transport protocol and HTTP/3
https://docs.quic.tech/quiche/
BSD 2-Clause "Simplified" License
9.4k stars 709 forks source link

Document how to dispatch packets to the correct connections #341

Open Demi-Marie opened 4 years ago

Demi-Marie commented 4 years ago

This isn’t currently documented anywhere that I could see. Doing it based on the UDP 5-tuple breaks roaming.

junhochoi commented 4 years ago

Since quiche library itself is not handling UDP socket directly, it's up to the implementor.

You can take a look at existing quiche-based implementations, such as nginx patch included or curl for your reference.

ghedo commented 4 years ago

This is a good point actually, we don't explicitly document this, though the examples do show this: https://github.com/cloudflare/quiche/blob/master/examples/server.rs#L214-L333

We can probably add something to the documentation as well.

Demi-Marie commented 4 years ago

Would it be possible to provide a utility function for that?