Bug 1646961 - Set the correct version of QUIC to be used when initializing Http3Client from necko. r=agrover

Differential Revision: https://phabricator.services.mozilla.com/D82423
This commit is contained in:
Dragana Damjanovic 2020-07-06 19:50:20 +00:00
parent 8496654289
commit 7ec7ee4a9b

View File

@ -69,6 +69,13 @@ impl NeqoHttp3Conn {
max_blocked_streams,
};
let quic_version = match alpn_conv {
"h3-29" => QuicVersion::Draft29,
"h3-28" => QuicVersion::Draft28,
"h3-27" => QuicVersion::Draft27,
_ => return Err(NS_ERROR_INVALID_ARG)
};
let conn = match Http3Client::new(
origin_conv,
&[alpn_conv],
@ -76,7 +83,7 @@ impl NeqoHttp3Conn {
local,
remote,
qpack_settings,
QuicVersion::Draft27,
quic_version,
) {
Ok(c) => c,
Err(_) => return Err(NS_ERROR_INVALID_ARG),