Skip to content

Commit aadb911

Browse files
authored
quic: fix internal error code conversion
Signed-off-by: Efe Karasakal <hi@efe.dev> PR-URL: #66967 Reviewed-By: Tim Perry <pimterry@gmail.com>
1 parent 1915b77 commit aadb911

2 files changed

Lines changed: 2 additions & 3 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,7 @@ class Stream::Outbound final : public MemoryRetainer {
702702
// but we have an error! oh no! We need to error the stream.
703703
if (flags_.next_pending) {
704704
flags_.next_pending = false;
705-
stream_->Destroy(
706-
QuicError::ForNgtcp2Error(NGTCP2_INTERNAL_ERROR));
705+
stream_->Destroy(QuicError::ForNgtcp2Error(NGTCP2_ERR_INTERNAL));
707706
// We do not need to worry about calling MarkErrored in this case
708707
// since we are immediately destroying the stream which will
709708
// release the outbound buffer anyway.

0 commit comments

Comments
 (0)