(cb, ack, duration)
| 886 | } |
| 887 | |
| 888 | function 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. |
| 905 | function submitSettings(settings, callback) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…