diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-30 08:40:30 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-30 08:40:30 +0100 |
commit | a5ee023cf36cfa11e6088c1f8111e237076474eb (patch) | |
tree | 3079507d3c4b87d93f7017c3557906afcc4476b9 /server/lib/hls.ts | |
parent | af48e345bee94c0191d4fb40e0c560e2ac0a57fc (diff) | |
download | PeerTube-a5ee023cf36cfa11e6088c1f8111e237076474eb.tar.gz PeerTube-a5ee023cf36cfa11e6088c1f8111e237076474eb.tar.zst PeerTube-a5ee023cf36cfa11e6088c1f8111e237076474eb.zip |
Fix redundancy timeout
Diffstat (limited to 'server/lib/hls.ts')
-rw-r--r-- | server/lib/hls.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/hls.ts b/server/lib/hls.ts index f541dd5d1..f2fe893a9 100644 --- a/server/lib/hls.ts +++ b/server/lib/hls.ts | |||
@@ -130,7 +130,7 @@ function downloadPlaylistSegments (playlistUrl: string, destinationDir: string, | |||
130 | for (const fileUrl of fileUrls) { | 130 | for (const fileUrl of fileUrls) { |
131 | const destPath = join(tmpDirectory, basename(fileUrl)) | 131 | const destPath = join(tmpDirectory, basename(fileUrl)) |
132 | 132 | ||
133 | await doRequestAndSaveToFile(fileUrl, destPath, { bodyKBLimit: remainingBodyKBLimit, timeout: REQUEST_TIMEOUTS.FILE }) | 133 | await doRequestAndSaveToFile(fileUrl, destPath, { bodyKBLimit: remainingBodyKBLimit, timeout: REQUEST_TIMEOUTS.REDUNDANCY }) |
134 | 134 | ||
135 | const { size } = await stat(destPath) | 135 | const { size } = await stat(destPath) |
136 | remainingBodyKBLimit -= (size / 1000) | 136 | remainingBodyKBLimit -= (size / 1000) |