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

Method setLocalWindowSize

lib/internal/http2/core.js:1443–1453  ·  view source on GitHub ↗
(windowSize)

Source from the content-addressed store, hash-verified

1441 // Returns 0 if success or throw an exception if NGHTTP2_ERR_NOMEM
1442 // if the window allocation fails
1443 setLocalWindowSize(windowSize) {
1444 if (this.destroyed)
1445 throw new ERR_HTTP2_INVALID_SESSION();
1446
1447 validateInt32(windowSize, 'windowSize', 0);
1448 const ret = this[kHandle].setLocalWindowSize(windowSize);
1449
1450 if (ret === NGHTTP2_ERR_NOMEM) {
1451 this.destroy(new ERR_HTTP2_NO_MEM());
1452 }
1453 }
1454
1455 // If ping is called while we are still connecting, or after close() has
1456 // been called, the ping callback will be invoked immediately with a ping

Calls 1

destroyMethod · 0.95

Tested by

no test coverage detected