File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @grpc/grpc-js" ,
3
- "version" : " 1.7.1 " ,
3
+ "version" : " 1.7.2 " ,
4
4
"description" : " gRPC Library for Node - pure JS implementation" ,
5
5
"homepage" : " https://grpc.io/" ,
6
6
"repository" : " https://github.com/grpc/grpc-node/tree/master/packages/grpc-js" ,
Original file line number Diff line number Diff line change @@ -346,6 +346,12 @@ export class Server {
346
346
serverOptions . maxSessionMemory = this . options [
347
347
'grpc-node.max_session_memory'
348
348
] ;
349
+ } else {
350
+ /* By default, set a very large max session memory limit, to effectively
351
+ * disable enforcement of the limit. Some testing indicates that Node's
352
+ * behavior degrades badly when this limit is reached, so we solve that
353
+ * by disabling the check entirely. */
354
+ serverOptions . maxSessionMemory = Number . MAX_SAFE_INTEGER ;
349
355
}
350
356
if ( 'grpc.max_concurrent_streams' in this . options ) {
351
357
serverOptions . settings = {
You can’t perform that action at this time.
0 commit comments