diff options
author | Chocobozzz <me@florianbigard.com> | 2021-11-29 15:45:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-11-29 15:45:02 +0100 |
commit | 4c99953acd04a2405db58ae2d7656a488bcc63a4 (patch) | |
tree | c2a35b969787729ec0013a8746493cdbca7b720b /server/lib/hls.ts | |
parent | c5e53d0e3979c4602760e507a7240ea6ffad7823 (diff) | |
download | PeerTube-4c99953acd04a2405db58ae2d7656a488bcc63a4.tar.gz PeerTube-4c99953acd04a2405db58ae2d7656a488bcc63a4.tar.zst PeerTube-4c99953acd04a2405db58ae2d7656a488bcc63a4.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 d969549b8..3331e6272 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 }) | 133 | await doRequestAndSaveToFile(fileUrl, destPath, { bodyKBLimit: remainingBodyKBLimit, timeout: REQUEST_TIMEOUTS.FILE }) |
134 | 134 | ||
135 | const { size } = await stat(destPath) | 135 | const { size } = await stat(destPath) |
136 | remainingBodyKBLimit -= (size / 1000) | 136 | remainingBodyKBLimit -= (size / 1000) |