Skip to content

Commit

Permalink
ConnectionIdGenrator change from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrichter committed Sep 7, 2023
1 parent 479e9d0 commit b25ba88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/http3dispatcher.cc
Expand Up @@ -43,13 +43,14 @@ std::unique_ptr<QuicSession> Http3Dispatcher::CreateQuicSession(
QuicConnectionId connection_id, const QuicSocketAddress& self_address,
const QuicSocketAddress& peer_address, absl::string_view /*alpn*/,
const ParsedQuicVersion& version,
const ParsedClientHello& /*parsed_chlo*/) {
const ParsedClientHello& /*parsed_chlo*/,
ConnectionIdGeneratorInterface& connection_id_generator) {
// The QuicServerSessionBase takes ownership of |connection| below.
QuicConnection* connection =
new QuicConnection(connection_id, self_address, peer_address, helper(),
alarm_factory(), writer(),
/* owns_writer= */ false, Perspective::IS_SERVER,
ParsedQuicVersionVector{version}, connection_id_generator());
ParsedQuicVersionVector{version}, connection_id_generator);

auto session = std::make_unique<Http3ServerSession>(
config(), GetSupportedVersions(), connection, this, session_helper(),
Expand Down
3 changes: 2 additions & 1 deletion src/http3dispatcher.h
Expand Up @@ -40,7 +40,8 @@ namespace quic
QuicConnectionId connection_id, const QuicSocketAddress &self_address,
const QuicSocketAddress &peer_address, absl::string_view alpn,
const ParsedQuicVersion &version,
const ParsedClientHello &parsed_chlo) override;
const ParsedClientHello &parsed_chlo,
ConnectionIdGeneratorInterface& connection_id_generator) override;

Http3ServerBackend *server_backend()
{
Expand Down

0 comments on commit b25ba88

Please sign in to comment.