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: fix ping callback · nodejs/node@28a6e59

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-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,11 @@ const proxySocketHandler = {
662662
// data received on the PING acknowlegement.
663663
function pingCallback(cb) {
664664
return function pingCallback(ack, duration, payload) {
665-
const err = ack ? null : new errors.Error('ERR_HTTP2_PING_CANCEL');
666-
cb(err, duration, payload);
665+
if (ack) {
666+
cb(null, duration, payload);
667+
} else {
668+
cb(new errors.Error('ERR_HTTP2_PING_CANCEL'));
669+
}
667670
};
668671
}
669672

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.