Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit ac49529

Browse files
committed
quic: record pkt_num_exhausted error
Fixes: #58 PR-URL: #207 Reviewed-By: #207
1 parent a35323d commit ac49529

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/node_quic_session.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2402,10 +2402,12 @@ bool QuicSession::StartClosingPeriod() {
24022402
error.code,
24032403
uv_hrtime());
24042404
if (nwrite < 0) {
2405-
if (nwrite == NGTCP2_ERR_PKT_NUM_EXHAUSTED)
2405+
if (nwrite == NGTCP2_ERR_PKT_NUM_EXHAUSTED) {
2406+
SetLastError(QUIC_ERROR_SESSION, NGTCP2_ERR_PKT_NUM_EXHAUSTED);
24062407
SilentClose();
2407-
else
2408+
} else {
24082409
SetLastError(QUIC_ERROR_SESSION, static_cast<int>(nwrite));
2410+
}
24092411
return false;
24102412
}
24112413
conn_closebuf_.Realloc(nwrite);

0 commit comments

Comments
 (0)