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

Commit

Permalink
quic: record pkt_num_exhausted error
Browse files Browse the repository at this point in the history
Fixes: #58
PR-URL: #207
Reviewed-By: #207
  • Loading branch information
jasnell committed Dec 4, 2019
1 parent a35323d commit ac49529
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/node_quic_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2402,10 +2402,12 @@ bool QuicSession::StartClosingPeriod() {
error.code,
uv_hrtime());
if (nwrite < 0) {
if (nwrite == NGTCP2_ERR_PKT_NUM_EXHAUSTED)
if (nwrite == NGTCP2_ERR_PKT_NUM_EXHAUSTED) {
SetLastError(QUIC_ERROR_SESSION, NGTCP2_ERR_PKT_NUM_EXHAUSTED);
SilentClose();
else
} else {
SetLastError(QUIC_ERROR_SESSION, static_cast<int>(nwrite));
}
return false;
}
conn_closebuf_.Realloc(nwrite);
Expand Down

0 comments on commit ac49529

Please sign in to comment.