Bug 1713580 - Enable the cubic congestion control for HTTP/3 r=necko-reviewers,valentin

Differential Revision: https://phabricator.services.mozilla.com/D116366
This commit is contained in:
Dragana Damjanovic 2021-06-07 08:48:02 +00:00
parent 3db9c9786a
commit eb3ec2f4ca

View File

@ -9,7 +9,8 @@ use neqo_http3::Error as Http3Error;
use neqo_http3::{Http3Client, Http3ClientEvent, Http3Parameters, Http3State};
use neqo_qpack::QpackSettings;
use neqo_transport::{
ConnectionParameters, Error as TransportError, Output, QuicVersion, RandomConnectionIdGenerator,
CongestionControlAlgorithm, ConnectionParameters, Error as TransportError, Output, QuicVersion,
RandomConnectionIdGenerator,
};
use nserror::*;
use nsstring::*;
@ -92,7 +93,9 @@ impl NeqoHttp3Conn {
Rc::new(RefCell::new(RandomConnectionIdGenerator::new(3))),
local,
remote,
ConnectionParameters::default().quic_version(quic_version),
ConnectionParameters::default()
.quic_version(quic_version)
.cc_algorithm(CongestionControlAlgorithm::Cubic),
&http3_settings,
Instant::now(),
) {