grpc-js: Re-add a couple of accidentally removed HTTP/2 session settings

This commit is contained in:
Michael Lumish 2025-11-04 11:23:06 -08:00
parent 3dd281b00f
commit dcb2182c23
2 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@grpc/grpc-js",
"version": "1.14.0",
"version": "1.14.1",
"description": "gRPC Library for Node - pure JS implementation",
"homepage": "https://grpc.io/",
"repository": "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",

View File

@ -720,7 +720,13 @@ export class Http2SubchannelConnector implements SubchannelConnector {
initialWindowSize:
options['grpc-node.flow_control_window'] ??
http2.getDefaultSettings?.()?.initialWindowSize ?? 65535,
}
},
maxSendHeaderBlockLength: Number.MAX_SAFE_INTEGER,
/* By default, set a very large max session memory limit, to effectively
* disable enforcement of the limit. Some testing indicates that Node's
* behavior degrades badly when this limit is reached, so we solve that
* by disabling the check entirely. */
maxSessionMemory: options['grpc-node.max_session_memory'] ?? Number.MAX_SAFE_INTEGER
};
const session = http2.connect(`${scheme}://${targetPath}`, sessionOptions);
// Prepare window size configuration for remoteSettings handler