Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 2 additions & 0 deletions neqo-http3/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,8 @@ impl Http3Connection {
HSettingType::MaxHeaderListSize,
HSettingType::MaxTableCapacity,
HSettingType::BlockedStreams,
// RFC 9114, Section 7.2.4.2 covers omitted non-default settings.
Comment thread
srkyn marked this conversation as resolved.
Resolved
HSettingType::EnableConnect,
// [RFC 9297, Section 2.1.1](https://www.rfc-editor.org/rfc/rfc9297.html#section-2.1.1)
// requires a client that stored SETTINGS_H3_DATAGRAM with its
// 0-RTT state to terminate the connection with H3_SETTINGS_ERROR
Expand Down
20 changes: 20 additions & 0 deletions neqo-http3/src/connection_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4276,6 +4276,26 @@ mod tests {
);
}

#[test]
fn zero_rtt_new_server_setting_connect_smaller() {
Comment thread
srkyn marked this conversation as resolved.
Resolved
// The server advertised SETTINGS_ENABLE_CONNECT_PROTOCOL=1 before, and now withholds it.
zero_rtt_change_settings(
&[
HSetting::new(HSettingType::MaxTableCapacity, 100),
HSetting::new(HSettingType::BlockedStreams, 100),
HSetting::new(HSettingType::MaxHeaderListSize, 10000),
HSetting::new(HSettingType::EnableConnect, 1),
],
&[
HSetting::new(HSettingType::MaxTableCapacity, 100),
HSetting::new(HSettingType::BlockedStreams, 100),
HSetting::new(HSettingType::MaxHeaderListSize, 10000),
],
&Http3State::Closing(CloseReason::Application(265)),
ENCODER_STREAM_DATA_WITH_CAP_INSTRUCTION,
);
}

#[test]
fn zero_rtt_max_table_size_first_omitted() {
// send server original settings without MaxTableCapacity
Expand Down
Loading