diff --git a/src/quic/session.cc b/src/quic/session.cc index ba672a3bee48..1d06b1fdcc00 100644 --- a/src/quic/session.cc +++ b/src/quic/session.cc @@ -3649,7 +3649,7 @@ void Session::SendConnectionClose() { auto ErrorAndSilentClose = [&] { Debug(this, "Failed to create connection close packet"); - SetLastError(QuicError::ForNgtcp2Error(NGTCP2_INTERNAL_ERROR)); + SetLastError(QuicError::ForNgtcp2Error(NGTCP2_ERR_INTERNAL)); Close(CloseMethod::SILENT); }; diff --git a/src/quic/streams.cc b/src/quic/streams.cc index 0a2af12d366a..c62ceeb2a8e3 100644 --- a/src/quic/streams.cc +++ b/src/quic/streams.cc @@ -702,8 +702,7 @@ class Stream::Outbound final : public MemoryRetainer { // but we have an error! oh no! We need to error the stream. if (flags_.next_pending) { flags_.next_pending = false; - stream_->Destroy( - QuicError::ForNgtcp2Error(NGTCP2_INTERNAL_ERROR)); + stream_->Destroy(QuicError::ForNgtcp2Error(NGTCP2_ERR_INTERNAL)); // We do not need to worry about calling MarkErrored in this case // since we are immediately destroying the stream which will // release the outbound buffer anyway.