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

Commit

Permalink
quic: uncomment out memory tracking
Browse files Browse the repository at this point in the history
PR-URL: #31
  • Loading branch information
jasnell committed Aug 19, 2019
1 parent 32a61ab commit 78b700e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node_quic_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ void QuicSessionConfig::ToSettings(ngtcp2_settings* settings,
}

void QuicSession::CheckAllocatedSize(size_t previous_size) {
// CHECK_GE(current_ngtcp2_memory_, previous_size);
CHECK_GE(current_ngtcp2_memory_, previous_size);
}

void QuicSession::IncrementAllocatedSize(size_t size) {
// current_ngtcp2_memory_ += size;
current_ngtcp2_memory_ += size;
}

void QuicSession::DecrementAllocatedSize(size_t size) {
// current_ngtcp2_memory_ -= size;
current_ngtcp2_memory_ -= size;
}

// Static ngtcp2 callbacks are registered when ngtcp2 when a new ngtcp2_conn is
Expand Down

0 comments on commit 78b700e

Please sign in to comment.