File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 933933 },
934934 ],
935935 }],
936+ [ 'debug_nghttp2==1' , {
937+ 'defines' : [ 'NODE_DEBUG_NGHTTP2=1' ]
938+ }],
936939 ],
937940 'actions' : [
938941 {
Original file line number Diff line number Diff line change @@ -3179,6 +3179,12 @@ void SetCallbackFunctions(const FunctionCallbackInfo<Value>& args) {
31793179#undef SET_FUNCTION
31803180}
31813181
3182+ #ifdef NODE_DEBUG_NGHTTP2
3183+ void NgHttp2Debug (const char * format, va_list args) {
3184+ vfprintf (stderr, format, args);
3185+ }
3186+ #endif
3187+
31823188void Http2State::MemoryInfo (MemoryTracker* tracker) const {
31833189 tracker->TrackField (" root_buffer" , root_buffer);
31843190}
@@ -3344,6 +3350,10 @@ void Initialize(Local<Object> target,
33443350#undef V
33453351
33463352 target->Set (context, env->constants_string (), constants).Check ();
3353+
3354+ #ifdef NODE_DEBUG_NGHTTP2
3355+ nghttp2_set_debug_vprintf_callback (NgHttp2Debug);
3356+ #endif
33473357}
33483358} // namespace http2
33493359} // namespace node
You can’t perform that action at this time.
0 commit comments