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

Commit 1eaf0cf

Browse files
committed
disable http2 timeout
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
1 parent d0c3863 commit 1eaf0cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/server.js

+1
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ class Server {
112112
this[kServer] = Http2.createServer();
113113
}
114114

115+
this[kServer].timeout = 0;
115116
setupHandlers(this);
116117

117118
function onError (err) {

0 commit comments

Comments
 (0)