Skip to content

Commit b259f8f

Browse files
committed
Disable default timeout
Starting node 18 we now have a default timeout of 300000 ( 5 minutes) set , which is not suitable for our use cases. This commit disables the default timeout by setting the server.requestTimeout to 0 https://nodejs.org/api/http.html#serverrequesttimeout Issue: CLDSRV-716
1 parent b80db5a commit b259f8f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ class S3Server {
229229
});
230230
}
231231

232+
// Starting NodeJS v18, the default timeout, when `undefined`, is
233+
// 5 minutes. We must set the value to zero to allow for long
234+
// upload durations.
232235
server.requestTimeout = 0; // disabling request timeout
233236

234237
server.on('connection', socket => {

0 commit comments

Comments
 (0)