Skip to content

Commit 93ea51f

Browse files
committed
grpc-js: disable http2 server timeout
gRPC has its own mechanisms for timing out a request. Furthermore, the default timeout was removed from Node.js Refs: nodejs/node#27558
1 parent 9c27403 commit 93ea51f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/grpc-js/src/server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export class Server {
202202
this.http2Server = http2.createServer();
203203
}
204204

205+
this.http2Server.setTimeout(0, noop);
205206
this._setupHandlers();
206207

207208
function onError(err: Error): void {

0 commit comments

Comments
 (0)