Skip to content

Commit

Permalink
quic: record pkt_num_exhausted error
Browse files Browse the repository at this point in the history
Fixes: nodejs#58
  • Loading branch information
jasnell committed Dec 3, 2019
1 parent feea134 commit ed629f0
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 @@ -2396,10 +2396,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 ed629f0

Please sign in to comment.