disable node18 timeout on long uploads
Massimo Melina committed
Sep 13, 2023 at 08:59 UTC
a28972cced07c3cd543a48f96937197576801add
1 file changed
+1
-1
src/listen.ts
+1
-1
@@ -31,7 +31,7 @@ portCfg.sub(async port => {
31
while (!app)
32
await wait(100)
33
stopServer(httpSrv).then()
34
- httpSrv = Object.assign(http.createServer(app.callback()), { name: 'http' })
34
+ httpSrv = Object.assign(http.createServer({ requestTimeout: 0 }, app.callback()), { name: 'http' })
35
port = await startServer(httpSrv, { port })
36
if (!port) return
37
httpSrv.on('connection', newConnection)