Increase upload timeout to 15 min for slow connections
Build and Deploy Verso / deploy (push) Successful in 15m39s
Build and Deploy Verso / deploy (push) Successful in 15m39s
Frontend fetch gets AbortSignal.timeout(15 min) so hung connections fail cleanly. Server requestTimeout raised from Node default (5 min) to match, preventing large-file uploads from being cut off server-side. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -348,6 +348,7 @@ if (Settings.csp && Settings.csp.enabled) {
|
||||
|
||||
logger.debug('creating HTTP server'.yellow)
|
||||
const server = http.createServer(app)
|
||||
server.requestTimeout = 15 * 60 * 1000
|
||||
|
||||
// provide settings for separate web and api processes
|
||||
if (Settings.enabledServices.includes('api')) {
|
||||
|
||||
@@ -70,6 +70,7 @@ async function uploadOne(
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': getMeta('ol-csrfToken'),
|
||||
},
|
||||
signal: AbortSignal.timeout(15 * 60 * 1000),
|
||||
})
|
||||
|
||||
if (!response.ok) {
|
||||
|
||||
Reference in New Issue
Block a user