]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix redundancy timeout
authorChocobozzz <me@florianbigard.com>
Tue, 30 Nov 2021 07:40:30 +0000 (08:40 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 30 Nov 2021 07:40:30 +0000 (08:40 +0100)
server/lib/hls.ts

index f541dd5d1cc49bde6c669b89138ea4ae22c34251..f2fe893a94333694a2c5205652d0fcbf526a307c 100644 (file)
@@ -130,7 +130,7 @@ function downloadPlaylistSegments (playlistUrl: string, destinationDir: string,
       for (const fileUrl of fileUrls) {
         const destPath = join(tmpDirectory, basename(fileUrl))
 
-        await doRequestAndSaveToFile(fileUrl, destPath, { bodyKBLimit: remainingBodyKBLimit, timeout: REQUEST_TIMEOUTS.FILE })
+        await doRequestAndSaveToFile(fileUrl, destPath, { bodyKBLimit: remainingBodyKBLimit, timeout: REQUEST_TIMEOUTS.REDUNDANCY })
 
         const { size } = await stat(destPath)
         remainingBodyKBLimit -= (size / 1000)