mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
grpc-js: Re-add a couple of accidentally removed HTTP/2 session settings
This commit is contained in:
parent
3dd281b00f
commit
dcb2182c23
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user