Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example on how to fetch datagrams from the underlying QUIC session #77

Open
jvimal opened this issue Feb 7, 2022 · 0 comments
Open

Comments

@jvimal
Copy link

jvimal commented Feb 7, 2022

@stammw following up on the Discord question.

IIUC, QUIC supports both reliable streams and best-effort datagrams over the same cryptographic session established between two endpoints.

Although datagrams probably do not make sense for h3, it would still be useful if I can use h3 to share an already established QUIC session with datagram processing that could be happening concurrently. I haven't looked at h3 code very carefully, but it looks like h3 takes ownership/hides the underlying QUIC session, which would make getting datagrams a bit difficult.

For example, quinn-rs exposes Datagrams in the NewConnection struct, which has a poll_next() method that would be worth exposing: https://docs.rs/quinn/latest/quinn/struct.Datagrams.html#method.poll_next.

An example of how to do it would be great! Happy to chip in and contribute as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant