Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add comment explaining call to nghttp2_option_set_no_closed_streams
  • Loading branch information
davedoesdev committed Oct 2, 2018
commit 750701510b99f2f9efbeee6fa90bf882ac3a619f
2 changes: 2 additions & 0 deletions src/node_http2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ Http2Scope::~Http2Scope() {
Http2Options::Http2Options(Environment* env, nghttp2_session_type type) {
nghttp2_option_new(&options_);

// Make sure closed connections aren't kept around, taking up memory.
// Note that this breaks the priority tree, which we don't use.
nghttp2_option_set_no_closed_streams(options_, 1);

// We manually handle flow control within a session in order to
Expand Down