Skip to content

Commit 50f87dd

Browse files
committed
quic: fix internal error code conversion
Signed-off-by: Efe Karasakal <hi@efe.dev>
1 parent 84f8e2f commit 50f87dd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/quic/session.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3649,7 +3649,7 @@ void Session::SendConnectionClose() {
36493649

36503650
auto ErrorAndSilentClose = [&] {
36513651
Debug(this, "Failed to create connection close packet");
3652-
SetLastError(QuicError::ForNgtcp2Error(NGTCP2_INTERNAL_ERROR));
3652+
SetLastError(QuicError::ForNgtcp2Error(NGTCP2_ERR_INTERNAL));
36533653
Close(CloseMethod::SILENT);
36543654
};
36553655

‎src/quic/streams.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ class Stream::Outbound final : public MemoryRetainer {
703703
if (flags_.next_pending) {
704704
flags_.next_pending = false;
705705
stream_->Destroy(
706-
QuicError::ForNgtcp2Error(NGTCP2_INTERNAL_ERROR));
706+
QuicError::ForNgtcp2Error(NGTCP2_ERR_INTERNAL));
707707
// We do not need to worry about calling MarkErrored in this case
708708
// since we are immediately destroying the stream which will
709709
// release the outbound buffer anyway.

0 commit comments

Comments
 (0)