MCPcopy Index your code
hub / github.com/nodejs/node / settingsCallback

Function settingsCallback

lib/internal/http2/core.js:888–902  ·  view source on GitHub ↗
(cb, ack, duration)

Source from the content-addressed store, hash-verified

886}
887
888function settingsCallback(cb, ack, duration) {
889 this[kState].pendingAck--;
890 this[kLocalSettings] = undefined;
891 if (ack) {
892 debugSessionObj(this, 'settings received');
893 const settings = this.localSettings;
894 if (typeof cb === 'function')
895 cb(null, settings, duration);
896 this.emit('localSettings', settings);
897 } else {
898 debugSessionObj(this, 'settings canceled');
899 if (typeof cb === 'function')
900 cb(new ERR_HTTP2_SETTINGS_CANCEL());
901 }
902}
903
904// Submits a SETTINGS frame to be sent to the remote peer.
905function submitSettings(settings, callback) {

Callers

nothing calls this directly

Calls 3

debugSessionObjFunction · 0.85
cbFunction · 0.50
emitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…