Skip to content

Commit

Permalink
build: fix no-datagram build
Browse files Browse the repository at this point in the history
Signed-off-by: Alyssa Wilk <alyssar@chromium.org>
  • Loading branch information
alyssawilk committed Jan 4, 2024
1 parent 86f306d commit ed11668
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/common/quic/envoy_quic_client_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,11 @@ void EnvoyQuicClientStream::encodeMetadata(const Http::MetadataMapVector& /*meta
}

void EnvoyQuicClientStream::resetStream(Http::StreamResetReason reason) {
#ifdef ENVOY_ENABLE_HTTP_DATAGRAMS
if (http_datagram_handler_) {
UnregisterHttp3DatagramVisitor();
}
#endif
Reset(envoyResetReasonToQuicRstError(reason));
}

Expand Down
2 changes: 2 additions & 0 deletions source/common/quic/envoy_quic_server_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ void EnvoyQuicServerStream::resetStream(Http::StreamResetReason reason) {
buffer_memory_account_->clearDownstream();
}

#ifdef ENVOY_ENABLE_HTTP_DATAGRAMS
if (http_datagram_handler_) {
UnregisterHttp3DatagramVisitor();
}
#endif

if (local_end_stream_ && !reading_stopped()) {
// This is after 200 early response. Reset with QUIC_STREAM_NO_ERROR instead
Expand Down

0 comments on commit ed11668

Please sign in to comment.