diff options
Diffstat (limited to 'lib/internal/http2/core.js')
-rw-r--r-- | lib/internal/http2/core.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/internal/http2/core.js b/lib/internal/http2/core.js index 69666bb6ba..4e633a38e6 100644 --- a/lib/internal/http2/core.js +++ b/lib/internal/http2/core.js @@ -194,10 +194,6 @@ const kType = Symbol('type'); const kWriteGeneric = Symbol('write-generic'); const { - paddingBuffer, - PADDING_BUF_FRAME_LENGTH, - PADDING_BUF_MAX_PAYLOAD_LENGTH, - PADDING_BUF_RETURN_VALUE, kBitfield, kSessionPriorityListenerCount, kSessionFrameErrorListenerCount, @@ -617,20 +613,6 @@ function onGoawayData(code, lastStreamID, buf) { } } -// Returns the padding to use per frame. The selectPadding callback is set -// on the options. It is invoked with two arguments, the frameLen, and the -// maxPayloadLen. The method must return a numeric value within the range -// frameLen <= n <= maxPayloadLen. -function onSelectPadding() { - const session = this[kOwner]; - if (session.destroyed) - return; - const fn = session[kSelectPadding]; - const frameLen = paddingBuffer[PADDING_BUF_FRAME_LENGTH]; - const maxFramePayloadLen = paddingBuffer[PADDING_BUF_MAX_PAYLOAD_LENGTH]; - paddingBuffer[PADDING_BUF_RETURN_VALUE] = fn(frameLen, maxFramePayloadLen); -} - // When a ClientHttp2Session is first created, the socket may not yet be // connected. If request() is called during this time, the actual request // will be deferred until the socket is ready to go. @@ -3018,7 +3000,6 @@ binding.setCallbackFunctions( onGoawayData, onAltSvc, onOrigin, - onSelectPadding, onStreamTrailers, onStreamClose ); |