Skip to content

Commit 955080f

Browse files
danbevrvagg
authored andcommitted
http2: pass session to DEBUG_HTTP2SESSION2
When configure with --debug-http2 --debug-nghttp2 the following compilation error is generated: DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret); ^ ../src/node_http2.cc:1690:27: error: invalid use of 'this' outside of a non-static member function 1 errors generated. OnStreamReadImpl is static and I think the intention was to pass in the session variable here. PR-URL: #20815 Refs: #20806 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]>
1 parent 52f5829 commit 955080f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_http2.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ void Http2Session::OnStreamReadImpl(ssize_t nread,
16911691
// ssize_t to int. Cast here so that the < 0 check actually works on
16921692
// Windows.
16931693
if (static_cast<int>(ret) < 0) {
1694-
DEBUG_HTTP2SESSION2(this, "fatal error receiving data: %d", ret);
1694+
DEBUG_HTTP2SESSION2(session, "fatal error receiving data: %d", ret);
16951695

16961696
Local<Value> argv[1] = {
16971697
Integer::New(isolate, ret),

0 commit comments

Comments
 (0)