Skip to content

Commit

Permalink
Fix redundancy timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Nov 30, 2021
1 parent af48e34 commit a5ee023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/lib/hls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a5ee023

Please sign in to comment.