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

feat(qns): implement v2 testcase #1570

Merged
merged 2 commits into from
Jan 21, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 3 additions & 0 deletions neqo-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,9 @@ fn main() -> Res<()> {
args.use_old_http = true;
args.key_update = true;
}
"v2" => {
args.use_old_http = true;
}
_ => exit(127),
}
}
Expand Down
14 changes: 10 additions & 4 deletions neqo-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,10 +837,12 @@ fn main() -> Result<(), io::Error> {

if let Some(testcase) = args.qns_test.as_ref() {
if args.quic_parameters.quic_version.is_empty() {
// Quic Interop Runner expects the server to support `Version1` only.
// Exceptions are testcases `versionnegotiation` and `v2`. Neither are
// supported by Neqo. Thus always set `Version1`.
args.quic_parameters.quic_version = vec![VersionArg(Version::Version1)];
// Quic Interop Runner expects the server to support `Version1`
// only. Exceptions are testcases `versionnegotiation` (not yet
// implemented) and `v2`.
if testcase != "v2" {
args.quic_parameters.quic_version = vec![VersionArg(Version::Version1)];
}
} else {
qwarn!("Both -V and --qns-test were set. Ignoring testcase specific versions.");
}
Expand Down Expand Up @@ -868,6 +870,10 @@ fn main() -> Result<(), io::Error> {
args.alpn = String::from(HQ_INTEROP);
args.retry = true;
}
"v2" => {
args.use_old_http = true;
args.alpn = String::from(HQ_INTEROP);
}
_ => exit(127),
}
}
Expand Down
Loading