| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8d7aa53 commit 5d48011
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -859,6 +859,9 @@ | |||
| 859 | 859 | }, | |
| 860 | 860 | ], | |
| 861 | 861 | }], | |
| 862 | + [ 'debug_nghttp2==1', { | ||
| 863 | + 'defines': [ 'NODE_DEBUG_NGHTTP2=1' ] | ||
| 864 | + }], | ||
| 862 | 865 | ], | |
| 863 | 866 | 'actions': [ | |
| 864 | 867 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3179,6 +3179,12 @@ void SetCallbackFunctions(const FunctionCallbackInfo<Value>& args) { | |||
| 3179 | 3179 | #undef SET_FUNCTION | |
| 3180 | 3180 | } | |
| 3181 | 3181 | ||
| 3182 | + #ifdef NODE_DEBUG_NGHTTP2 | ||
| 3183 | + void NgHttp2Debug(const char* format, va_list args) { | ||
| 3184 | + vfprintf(stderr, format, args); | ||
| 3185 | + } | ||
| 3186 | + #endif | ||
| 3187 | + | ||
| 3182 | 3188 | void Http2State::MemoryInfo(MemoryTracker* tracker) const { | |
| 3183 | 3189 | tracker->TrackField("root_buffer", root_buffer); | |
| 3184 | 3190 | } | |
@@ -3344,6 +3350,10 @@ void Initialize(Local<Object> target, | |||
| 3344 | 3350 | #undef V | |
| 3345 | 3351 | ||
| 3346 | 3352 | target->Set(context, env->constants_string(), constants).Check(); | |
| 3353 | + | ||
| 3354 | + #ifdef NODE_DEBUG_NGHTTP2 | ||
| 3355 | + nghttp2_set_debug_vprintf_callback(NgHttp2Debug); | ||
| 3356 | + #endif | ||
| 3347 | 3357 | } | |
| 3348 | 3358 | } // namespace http2 | |
| 3349 | 3359 | } // namespace node | |
| Back | FazBrowse Home | New Git URL |
0 commit comments