Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion neqo-transport/src/connection/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ use crate::{
const LOCAL_MAX_DATA: u64 = MAX_VARINT;
const LOCAL_STREAM_LIMIT_BIDI: u64 = 16;
const LOCAL_STREAM_LIMIT_UNI: u64 = 16;
Comment thread
larseggert marked this conversation as resolved.
// Maximum size of a QUIC DATAGRAM frame, as specified in RFC 9000 Section 7.4 (64KB).
const MAX_DATAGRAM_FRAME_SIZE: u64 = 65536;
Comment thread
larseggert marked this conversation as resolved.
Outdated
const MAX_QUEUED_DATAGRAMS_DEFAULT: usize = 10;

/// What to do with preferred addresses.
Expand Down Expand Up @@ -115,7 +117,7 @@ impl Default for ConnectionParameters {
ack_ratio: Self::DEFAULT_ACK_RATIO,
idle_timeout: Self::DEFAULT_IDLE_TIMEOUT,
preferred_address: PreferredAddressConfig::Default,
datagram_size: 1200,
datagram_size: MAX_DATAGRAM_FRAME_SIZE,
outgoing_datagram_queue: MAX_QUEUED_DATAGRAMS_DEFAULT,
incoming_datagram_queue: MAX_QUEUED_DATAGRAMS_DEFAULT,
initial_rtt: DEFAULT_INITIAL_RTT,
Expand Down
Loading