Repository navigation
Description
Related: #3017, #3018, #4182, #3859, #4155
See also: #4354
When Http3Parameters::connect(true) is enabled, a connect-udp session accepts a DATAGRAM capsule whose UDP payload is 65528 to 65534 bytes and delivers it to the application as a ConnectUdpEvent::Datagram, leaving the session open. RFC 9298 Section 5 says a receiver MUST abort the stream when a context-ID-0 payload is longer than 65527 bytes, the most a UDP packet can carry. The attached reproducer shows that 65527 bytes is delivered, 65528 and 65534 bytes are also delivered, and only 65535 bytes gets SessionClosed(Error(257)).
The cause is Session::dgram_context_id in neqo-http3/src/features/extended_connect/connect_udp_session.rs. It strips context ID 0 and returns the rest without checking its length. On the capsule path, the only limit is Capsule::max_frame_data, which is 65535 bytes (MAX_DATAGRAM_FRAME_SIZE) and includes the context ID, so it sits 7 bytes above the UDP maximum. The sending side has the same gap: write_datagram_capsule accepts any buffer that fits flow control. As a result, neqo's own sender can emit a capsule that neqo's own receiver then resets. Nothing else goes wrong inside neqo, since the payload is an owned Bytes with no length assumption. The problem only shows up when a proxy, or a client talking to the neqo server, sends a payload no real UDP packet could hold. The capsule path, and with it this behaviour, arrived in 17a3811 ("feat(http3): support the HTTP DATAGRAM Capsule (#3122)"), first released in v0.23.0.
Details
This is an ordinary bug, not a security issue: the only peer that can send the oversized payload is the
connect-udp proxy the client has already authenticated, which chooses every byte of every UDP payload it
forwards anyway, and the 1 to 7 extra bytes give it nothing it did not already have.
A connect-udp session accepts a DATAGRAM capsule whose UDP payload is longer than a UDP packet can carry and
hands it to the application as a received UDP packet. RFC 9298 requires the receiver to abort the stream.
On an established session of an Http3Client, the proxy writes one DATA frame holding one DATAGRAM capsule
whose HTTP Datagram Payload is context ID 0 followed by N bytes. For N = 65528 the stream bytes are
00 80 00 ff fe (DATA, length 65534), 00 80 00 ff f9 (DATAGRAM capsule, length 65529), 00 (context ID),
then 65528 payload bytes. What the application gets, for four values of N:
| N (UDP payload) | capsule length | connect-udp events |
|---|---|---|
| 65527 | 65528 | Datagram with 65527 bytes (the valid maximum) |
| 65528 | 65529 | Datagram with 65528 bytes, session stays open |
| 65534 | 65535 | Datagram with 65534 bytes, session stays open |
| 65535 | 65536 | SessionClosed { reason: Error(257) } (0x101), no datagram |
RFC 9298, Section 5:
By virtue of the definition of the UDP header, it is not possible to encode UDP payloads longer than 65527
bytes. Therefore, endpoints MUST NOT send HTTP Datagrams with a UDP Proxying Payload field longer than 65527
using Context ID zero. An endpoint that receives an HTTP Datagram using Context ID zero whose UDP Proxying
Payload field is longer than 65527 MUST abort the corresponding stream.
The function that interprets the HTTP Datagram Payload checks the context ID and not the length of what
follows it (neqo-http3/src/features/extended_connect/connect_udp_session.rs:110):
fn dgram_context_id(&self, datagram: Bytes) -> Result<Bytes, DgramContextIdError> {
let (context_id, offset) = {
let mut decoder = Decoder::new(datagram.as_ref());
(decoder.decode_varint(), decoder.offset())
};
match context_id {
Some(0) => Ok(datagram.skip(offset)),
…Capsules reach it from the session's capsule loop, which queues whatever it returns as an event
(connect_udp_session.rs:76; new_datagram is neqo-http3/src/client_events.rs:273 on the client and
neqo-http3/src/server_connection_events.rs:221 on the server):
Some(Capsule::Datagram { payload }) => match self.dgram_context_id(payload) {
Ok(slice) => {
events.new_datagram(self.session_id, slice, self.connect_type());
}
Err(e) => {
debug!("[{self}]: received capsule with invalid context identifier: {e}");
}
},The only length limit on this path is a different one, and it explains the last row of the table. When the
FrameReader has decoded a capsule's length it compares it with Capsule::max_frame_data
(neqo-http3/src/frames/reader.rs:301, neqo-http3/src/frames/capsule.rs:69), which for a DATAGRAM capsule is
MAX_DATAGRAM_BYTES = neqo_transport::MAX_DATAGRAM_FRAME_SIZE = 65535
(neqo-transport/src/connection/params.rs:91). A longer capsule fails with HttpExcessiveLoad, which
read_control_stream turns into HttpGeneralProtocolStream (connect_udp_session.rs:71), and the stream is
reset. That limit is a buffering bound borrowed from the QUIC DATAGRAM frame size. It counts the context ID
and is 7 bytes above the UDP maximum plus a one-byte context ID, so UDP payloads of 65528 to 65534 bytes pass
it and nothing after it looks at the length.
HTTP Datagrams received in QUIC DATAGRAM frames go through the same function
(neqo-http3/src/features/extended_connect/session.rs:639), but a QUIC packet is itself carried in a UDP
payload, so those cannot reach 65528 bytes. Only the capsule path is affected.
The sending half of the same requirement is also unchecked. When the peer does not support QUIC DATAGRAM
frames (session.rs:489), write_datagram_capsule (connect_udp_session.rs:131) encodes any buf that fits
the stream's flow-control window: connect_udp_send_datagram with a 65528-byte buffer returns Ok on such a
session. A neqo receiver then delivers 65528 to 65534 bytes, and resets the stream for a 65535-byte buffer
(capsule length 65536), so neqo's own sender can emit a capsule that neqo's own receiver aborts.
The length check has been missing since dgram_context_id was written, but the capsule path became reachable
with 17a38118d1a4 ("feat(http3): support the HTTP DATAGRAM Capsule (#3122)", 2026-02-09), first released
in v0.23.0.
Impact
Only connect-udp (MASQUE) sessions are affected, and only with Http3Parameters::connect(true), which is off
by default (neqo-http3/src/conn_params.rs:13). A user only meets the bug if the proxy sends a DATAGRAM
capsule carrying a UDP payload of 65528 to 65534 bytes, which a correct proxy never does because no real UDP
packet is that long. When it happens, the application receives a ConnectUdpEvent::Datagram of that length
and the session stays open, where RFC 9298 requires the stream to be aborted. Nothing else goes wrong: inside
neqo the payload is an owned Bytes that is only moved into the event queue, with no length assumption, no
crash and no memory effect (debug assertions included), and neqo documents no size bound on
ConnectUdpEvent::Datagram. The same receive code serves the experimental neqo server, so a client can
equally deliver such payloads to a neqo-based proxy. In the other direction, an application that passes an
oversized buffer to connect_udp_send_datagram on a capsule-only session gets Ok and sends a capsule the
peer should reject.
Suggested fix
The attached patch rejects the payload in dgram_context_id, through a new
DgramContextIdError::PayloadTooLong, and aborts the stream from the capsule loop; for the sending side,
write_datagram_capsule refuses buffers over 65527 bytes with TooMuchData, which changes behaviour for
callers that sent such buffers on the capsule path. Its source change is below; the patch also adds a unit
test in connect_udp_session.rs and two integration tests in neqo-http3/tests/connect_udp.rs.
--- a/neqo-http3/src/features/extended_connect/connect_udp_session.rs
+++ b/neqo-http3/src/features/extended_connect/connect_udp_session.rs
@@ -27,6 +27,14 @@ use crate::{
/// The only context ID RFC 9298 defines: the payload is a UDP packet.
const CONTEXT_ID: u64 = 0;
+/// The longest payload a UDP packet can carry.
+///
+/// > By virtue of the definition of the UDP header, it is not possible to encode UDP
+/// > payloads longer than 65527 bytes.
+///
+/// <https://datatracker.ietf.org/doc/html/rfc9298#section-5>
+const MAX_UDP_PAYLOAD: usize = 65527;
+
#[derive(Debug)]
pub struct Session {
frame_reader: FrameReader,
@@ -77,6 +85,15 @@ impl Protocol for Session {
Ok(slice) => {
events.new_datagram(self.session_id, slice, self.connect_type());
}
+ Err(e @ DgramContextIdError::PayloadTooLong(_)) => {
+ // > An endpoint that receives an HTTP Datagram using Context ID zero
+ // > whose UDP Proxying Payload field is longer than 65527 MUST abort
+ // > the corresponding stream.
+ //
+ // <https://datatracker.ietf.org/doc/html/rfc9298#section-5>
+ debug!("[{self}]: received capsule with invalid payload: {e}");
+ return Err(Error::HttpGeneralProtocolStream);
+ }
Err(e) => {
debug!("[{self}]: received capsule with invalid context identifier: {e}");
}
@@ -113,7 +130,13 @@ impl Protocol for Session {
(decoder.decode_varint(), decoder.offset())
};
match context_id {
- Some(0) => Ok(datagram.skip(offset)),
+ Some(CONTEXT_ID) => {
+ let payload = datagram.skip(offset);
+ if payload.len() > MAX_UDP_PAYLOAD {
+ return Err(DgramContextIdError::PayloadTooLong(payload.len()));
+ }
+ Ok(payload)
+ }
Some(context_id) => Err(DgramContextIdError::UnknownIdentifier(context_id)),
None => {
// > all HTTP Datagrams associated with UDP Proxying request streams start with a Context ID field;
@@ -135,6 +158,14 @@ impl Protocol for Session {
buf: &[u8],
now: Instant,
) -> Res<()> {
+ // > endpoints MUST NOT send HTTP Datagrams with a UDP Proxying Payload field longer
+ // > than 65527 using Context ID zero.
+ //
+ // <https://datatracker.ietf.org/doc/html/rfc9298#section-5>
+ if buf.len() > MAX_UDP_PAYLOAD {
+ debug!("[{self}] datagram exceeds the maximum UDP payload length");
+ return Err(Error::Transport(neqo_transport::Error::TooMuchData));
+ }
let mut dgram_data = Encoder::with_capacity(Encoder::varint_len(CONTEXT_ID) + buf.len());
dgram_data.encode_varint(CONTEXT_ID);
dgram_data.encode(buf);
--- a/neqo-http3/src/features/extended_connect/session.rs
+++ b/neqo-http3/src/features/extended_connect/session.rs
@@ -892,4 +892,6 @@ pub(crate) enum DgramContextIdError {
MissingIdentifier,
#[error("Unknown context identifier: {0}")]
UnknownIdentifier(u64),
+ #[error("UDP payload too long: {0}")]
+ PayloadTooLong(usize),
}HttpGeneralProtocolStream is a stream error, so Http3Connection::handle_stream_manipulation_output
(neqo-http3/src/connection.rs:822) sends STOP_SENDING and RESET_STREAM and the application gets
SessionClosed, the same outcome as the 65535-byte row today. HTTP Datagrams in QUIC DATAGRAM frames go
through the same function and are dropped rather than aborted, as for the other context-ID errors (they cannot
reach that size); the log line in session.rs would call such a drop an "invalid context identifier". With
the patch applied to a clean checkout, the reproducer shows SessionClosed(Error(257)) for 65528 and 65534
bytes and still delivers 65527, and the patch passes cargo +nightly fmt --check and
cargo clippy --locked --all-targets -- -D warnings.
Proposed patches
patches/1.patch
# neqo-http3/src/features/extended_connect/connect_udp_session.rs
# fix(http3): abort a connect-udp stream on a UDP payload over 65527 bytes and refuse to send one in a
# DATAGRAM capsule
#
# RFC 9298 Section 5 requires a receiver to abort the stream when an HTTP Datagram with context ID 0 carries
# more than 65527 bytes, but dgram_context_id() only looked at the context ID, so the 65535-byte capsule
# buffering limit was the only bound and payloads of 65528 to 65534 bytes reached the application as
# ConnectUdpEvent::Datagram. The check is added in dgram_context_id(), where the payload is separated from
# the (variable-length) context ID, reported through a new DgramContextIdError::PayloadTooLong; the capsule
# loop turns that into Error::HttpGeneralProtocolStream, the same stream error an over-long capsule already
# produces, so the stream is reset and the application sees SessionClosed. The sending half named in the
# report is fixed too: write_datagram_capsule() now returns TooMuchData for a buffer over 65527 bytes, which
# is a behaviour change for callers that relied on sending such buffers on the capsule path. HTTP Datagrams
# in QUIC DATAGRAM frames go through the same function and are dropped rather than aborted, as before for
# the other context-ID errors; they cannot reach that size because a QUIC packet itself travels in a UDP
# payload. The patch adds a unit test and two integration tests (both fail without the source change); the
# workspace test suite, cargo +nightly fmt --check and cargo clippy --locked --all-targets -- -D warnings
# pass.
# reviewer: good — Fixes at the root (dgram_context_id plus a stream abort from the capsule loop, and a
# send-side refusal using the existing TooMuchData convention), leaves 65527-byte payloads working, ships
# tests, and neqo-http3 tests, nightly fmt --check and clippy -D warnings on the crate all pass; only nit is
# that the QUIC DATAGRAM path in session.rs would log a too-long payload as an 'invalid context identifier'.
# our check: FIXED · confidence high
#
diff --git a/neqo-http3/src/features/extended_connect/connect_udp_session.rs b/neqo-http3/src/features/extended_connect/connect_udp_session.rs
index 465b9d63..a06be809 100644
--- a/neqo-http3/src/features/extended_connect/connect_udp_session.rs
+++ b/neqo-http3/src/features/extended_connect/connect_udp_session.rs
@@ -27,6 +27,14 @@ use crate::{
/// The only context ID RFC 9298 defines: the payload is a UDP packet.
const CONTEXT_ID: u64 = 0;
+/// The longest payload a UDP packet can carry.
+///
+/// > By virtue of the definition of the UDP header, it is not possible to encode UDP
+/// > payloads longer than 65527 bytes.
+///
+/// <https://datatracker.ietf.org/doc/html/rfc9298#section-5>
+const MAX_UDP_PAYLOAD: usize = 65527;
+
#[derive(Debug)]
pub struct Session {
frame_reader: FrameReader,
@@ -77,6 +85,15 @@ impl Protocol for Session {
Ok(slice) => {
events.new_datagram(self.session_id, slice, self.connect_type());
}
+ Err(e @ DgramContextIdError::PayloadTooLong(_)) => {
+ // > An endpoint that receives an HTTP Datagram using Context ID zero
+ // > whose UDP Proxying Payload field is longer than 65527 MUST abort
+ // > the corresponding stream.
+ //
+ // <https://datatracker.ietf.org/doc/html/rfc9298#section-5>
+ debug!("[{self}]: received capsule with invalid payload: {e}");
+ return Err(Error::HttpGeneralProtocolStream);
+ }
Err(e) => {
debug!("[{self}]: received capsule with invalid context identifier: {e}");
}
@@ -113,7 +130,13 @@ impl Protocol for Session {
(decoder.decode_varint(), decoder.offset())
};
match context_id {
- Some(0) => Ok(datagram.skip(offset)),
+ Some(CONTEXT_ID) => {
+ let payload = datagram.skip(offset);
+ if payload.len() > MAX_UDP_PAYLOAD {
+ return Err(DgramContextIdError::PayloadTooLong(payload.len()));
+ }
+ Ok(payload)
+ }
Some(context_id) => Err(DgramContextIdError::UnknownIdentifier(context_id)),
None => {
// > all HTTP Datagrams associated with UDP Proxying request streams start with a Context ID field;
@@ -135,6 +158,14 @@ impl Protocol for Session {
buf: &[u8],
now: Instant,
) -> Res<()> {
+ // > endpoints MUST NOT send HTTP Datagrams with a UDP Proxying Payload field longer
+ // > than 65527 using Context ID zero.
+ //
+ // <https://datatracker.ietf.org/doc/html/rfc9298#section-5>
+ if buf.len() > MAX_UDP_PAYLOAD {
+ debug!("[{self}] datagram exceeds the maximum UDP payload length");
+ return Err(Error::Transport(neqo_transport::Error::TooMuchData));
+ }
let mut dgram_data = Encoder::with_capacity(Encoder::varint_len(CONTEXT_ID) + buf.len());
dgram_data.encode_varint(CONTEXT_ID);
dgram_data.encode(buf);
@@ -174,8 +205,8 @@ mod tests {
use neqo_common::Bytes;
use neqo_transport::StreamId;
- use super::Session;
- use crate::features::extended_connect::session::Protocol as _;
+ use super::{MAX_UDP_PAYLOAD, Session};
+ use crate::features::extended_connect::session::{DgramContextIdError, Protocol as _};
#[test]
fn varint_0_context_id() {
@@ -195,4 +226,24 @@ mod tests {
Bytes::from(vec![0x00, 0x00])
);
}
+
+ #[test]
+ fn udp_payload_length_limit() {
+ let session = Session::new(StreamId::new(42));
+ // The limit applies to the UDP payload, whatever the length of the context ID.
+ for context_id in [&[0x00][..], &[0x40, 0x00]] {
+ let datagram = |len| Bytes::from([context_id, &vec![0x2a; len]].concat());
+ assert_eq!(
+ session
+ .dgram_context_id(datagram(MAX_UDP_PAYLOAD))
+ .unwrap()
+ .len(),
+ MAX_UDP_PAYLOAD
+ );
+ assert!(matches!(
+ session.dgram_context_id(datagram(MAX_UDP_PAYLOAD + 1)),
+ Err(DgramContextIdError::PayloadTooLong(len)) if len == MAX_UDP_PAYLOAD + 1
+ ));
+ }
+ }
}
diff --git a/neqo-http3/src/features/extended_connect/session.rs b/neqo-http3/src/features/extended_connect/session.rs
index 3c7f13a7..3fee6e77 100644
--- a/neqo-http3/src/features/extended_connect/session.rs
+++ b/neqo-http3/src/features/extended_connect/session.rs
@@ -892,4 +892,6 @@ pub(crate) enum DgramContextIdError {
MissingIdentifier,
#[error("Unknown context identifier: {0}")]
UnknownIdentifier(u64),
+ #[error("UDP payload too long: {0}")]
+ PayloadTooLong(usize),
}
diff --git a/neqo-http3/tests/connect_udp.rs b/neqo-http3/tests/connect_udp.rs
index 69cad9ab..244dfe40 100644
--- a/neqo-http3/tests/connect_udp.rs
+++ b/neqo-http3/tests/connect_udp.rs
@@ -15,11 +15,13 @@ use neqo_http3::{
features::extended_connect::session::CloseReason,
webtransport::ClientSession as _,
};
-use neqo_transport::{ConnectionParameters, DatagramQueueOutcome, StreamDataLimit, StreamType};
+use neqo_transport::{
+ Connection, ConnectionParameters, DatagramQueueOutcome, StreamDataLimit, StreamType,
+};
use nss::AuthenticationStatus;
use test_fixture::{
- DEFAULT_ADDR, default_http3_client, default_http3_server, exchange_packets, fixture_init,
- http3_client_with_params, http3_server_with_params, now,
+ DEFAULT_ADDR, default_http3_client, default_http3_server, default_server_h3, exchange_packets,
+ fixture_init, http3_client_with_params, http3_server_with_params, now,
};
use tracing::info;
@@ -28,6 +30,11 @@ const PONG: &[u8] = b"pong";
const DATAGRAM_FRAME_TYPE_VARINT_LEN: usize = 1;
+/// The longest payload a UDP packet can carry.
+///
+/// <https://datatracker.ietf.org/doc/html/rfc9298#section-5>
+const MAX_UDP_PAYLOAD: usize = 65527;
+
#[test]
fn disabled_by_default() {
let mut client = default_http3_client();
@@ -969,6 +976,128 @@ fn datagram_over_the_peers_limit_including_context_id_is_rejected() {
);
}
+/// A UDP packet cannot carry more than 65527 bytes, so a longer datagram is
+/// refused instead of being sent in an HTTP DATAGRAM Capsule.
+#[test]
+fn datagram_capsule_over_max_udp_payload_is_rejected() {
+ let (mut client, _proxy, session_id, _proxy_session) = establish_capsule_session(None);
+
+ assert_eq!(
+ client.connect_udp_send_datagram(session_id, &vec![0; MAX_UDP_PAYLOAD], None, now()),
+ Ok(DatagramQueueOutcome::Ok)
+ );
+ assert_eq!(
+ client.connect_udp_send_datagram(session_id, &vec![0; MAX_UDP_PAYLOAD + 1], None, now()),
+ Err(Error::Transport(neqo_transport::Error::TooMuchData))
+ );
+}
+
+/// Exchange packets between a client and a proxy that is a bare transport
+/// connection, so that the proxy can write arbitrary bytes to its streams.
+fn exchange_packets_with_transport_proxy(
+ client: &mut Http3Client,
+ proxy: &mut Connection,
+ is_handshake: bool,
+) {
+ let mut out = None;
+ let mut auth_needed = is_handshake;
+ loop {
+ out = client.process(out, now()).dgram();
+ let client_out_is_none = out.is_none();
+ if auth_needed && client.peer_certificate().is_some() {
+ client.authenticated(AuthenticationStatus::Ok, now());
+ auth_needed = false;
+ }
+ out = proxy.process(out, now()).dgram();
+ if client_out_is_none && out.is_none() {
+ break;
+ }
+ }
+}
+
+/// Have a proxy send a UDP payload of `len` bytes in an HTTP DATAGRAM Capsule
+/// and return the connect-udp events the client reports for it.
+fn receive_datagram_capsule(len: usize) -> Vec<ConnectUdpEvent> {
+ // Control stream with a SETTINGS frame: `SETTINGS_ENABLE_CONNECT_PROTOCOL`
+ // and `SETTINGS_H3_DATAGRAM`.
+ const CONTROL_STREAM: &[u8] = &[0x00, 0x04, 0x04, 0x08, 0x01, 0x33, 0x01];
+ // HEADERS frame with `:status: 200`.
+ const RESPONSE_200: &[u8] = &[0x01, 0x03, 0x00, 0x00, 0xd9];
+
+ fixture_init();
+ let mut client = http3_client_with_params(Http3Parameters::default().connect(true));
+ let mut proxy = default_server_h3();
+ exchange_packets_with_transport_proxy(&mut client, &mut proxy, true);
+
+ let control_stream = proxy.stream_create(StreamType::UniDi).unwrap();
+ proxy.stream_send(control_stream, CONTROL_STREAM).unwrap();
+ exchange_packets_with_transport_proxy(&mut client, &mut proxy, false);
+
+ let session_id = client
+ .connect_udp_create_session(
+ now(),
+ &format!("https://[{}]:{}/", DEFAULT_ADDR.ip(), DEFAULT_ADDR.port())
+ .parse::<Uri>()
+ .unwrap(),
+ &[],
+ )
+ .unwrap();
+ exchange_packets_with_transport_proxy(&mut client, &mut proxy, false);
+ proxy.stream_send(session_id, RESPONSE_200).unwrap();
+ exchange_packets_with_transport_proxy(&mut client, &mut proxy, false);
+ client
+ .events()
+ .find(|e| {
+ matches!(
+ e,
+ Http3ClientEvent::ConnectUdp(ConnectUdpEvent::NewSession { stream_id, status, .. })
+ if *stream_id == session_id && *status == 200)
+ })
+ .unwrap();
+
+ // A DATA frame holding a DATAGRAM capsule holding context ID 0 and the UDP payload.
+ let mut capsule = neqo_common::Encoder::default();
+ capsule.encode_varint(0_u64).encode_vvec_with(|enc| {
+ enc.encode_varint(0_u64).encode(vec![0; len]);
+ });
+ let mut frame = neqo_common::Encoder::default();
+ frame.encode_varint(0_u64).encode_vvec(capsule.as_ref());
+ assert_eq!(
+ proxy.stream_send(session_id, frame.as_ref()).unwrap(),
+ frame.len()
+ );
+ exchange_packets_with_transport_proxy(&mut client, &mut proxy, false);
+
+ client
+ .events()
+ .filter_map(|e| match e {
+ Http3ClientEvent::ConnectUdp(e) => Some(e),
+ _ => None,
+ })
+ .collect()
+}
+
+/// > An endpoint that receives an HTTP Datagram using Context ID zero whose UDP
+/// > Proxying Payload field is longer than 65527 MUST abort the corresponding
+/// > stream.
+///
+/// <https://datatracker.ietf.org/doc/html/rfc9298#section-5>
+#[test]
+fn received_datagram_capsule_over_max_udp_payload_aborts_session() {
+ let events = receive_datagram_capsule(MAX_UDP_PAYLOAD);
+ assert!(matches!(
+ &events[..],
+ [ConnectUdpEvent::Datagram { datagram, .. }] if datagram.len() == MAX_UDP_PAYLOAD
+ ));
+
+ let events = receive_datagram_capsule(MAX_UDP_PAYLOAD + 1);
+ assert!(matches!(
+ &events[..],
+ [ConnectUdpEvent::SessionClosed { reason, .. }]
+ if *reason == CloseReason::Error(Error::HttpGeneralProtocolStream.code())
+ ));
+}
+
/// The datagram queue setters are `WebTransport` attributes; a connect-udp
/// session must be rejected rather than silently given a mark.
#[test]When fixing this, please carry this line into the commit message:
Discovered by Anthropic's OSS Scanner, as bug ANT-2026-EDRVQKIW.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity