GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — http2: remove unnecessary bind from setImmediate · nodejs/node@dce435d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/http2
    • core.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/http2/core.js‎

Copy file name to clipboardExpand all lines: lib/internal/http2/core.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2155,12 +2155,16 @@ class Http2Stream extends Duplex {
21552155
// By using setImmediate we allow pushStreams to make it through
21562156
// before the stream is officially closed. This prevents a bug
21572157
// in most browsers where those pushStreams would be rejected.
2158-
setImmediate(this.close.bind(this));
2158+
setImmediate(callStreamClose, this);
21592159
}
21602160
}
21612161
}
21622162
}
21632163

2164+
function callStreamClose(stream) {
2165+
stream.close();
2166+
}
2167+
21642168
function processHeaders(oldHeaders) {
21652169
assertIsObject(oldHeaders, 'headers');
21662170
const headers = Object.create(null);

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.