Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
disable http2 timeout
Browse files Browse the repository at this point in the history
gRPC has its own mechanisms for timing out a request, and
requests should not timeout by default. Furthermore, the
default timeout was removed from Node.js.

Refs: nodejs/node#27558
  • Loading branch information
cjihrig committed Jun 4, 2019
1 parent d0c3863 commit 1eaf0cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ class Server {
this[kServer] = Http2.createServer();
}

this[kServer].timeout = 0;
setupHandlers(this);

function onError (err) {
Expand Down

0 comments on commit 1eaf0cf

Please sign in to comment.