quiche icon indicating copy to clipboard operation
quiche copied to clipboard

does quiche/tokio-quiche support RFC 9297?

Open Sherlock-Holo opened this issue 1 month ago • 2 comments

I notice quic-go http3 package support RFC 9297, but tokio-quiche doesn't mention it, in fact I only found

/// Set the `SETTINGS_ENABLE_CONNECT_PROTOCOL` HTTP/3 setting.
    /// See <https://www.rfc-editor.org/rfc/rfc9220#section-3-2>
    pub enable_extended_connect: bool,

in Http3Settings, it is not http datagram(RFC 9297)

Sherlock-Holo avatar Nov 24 '25 09:11 Sherlock-Holo

Good question, its not entirely clear but quiche does support HTTP/3 datagrams as defined in RFC 9297.

When the QUIC transport is configured to support RFC 9221 Datagrams via https://docs.quic.tech/quiche/struct.Config.html#method.enable_dgram, and the config is passed to the H3 layer construction via https://docs.quic.tech/quiche/h3/struct.Connection.html#method.with_transport, the HTTP/3 setting is automatically enabled.

LPardue avatar Nov 24 '25 09:11 LPardue

@LPardue thanks for your response

however, the usage of tokio-quiche is much more complicated than that of h3-quinn, could you provide an example how to send a http datagram with tokio-quiche

Sherlock-Holo avatar Nov 25 '25 04:11 Sherlock-Holo