mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 16:22:00 +00:00
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:
parent
8496654289
commit
7ec7ee4a9b
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user