Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
a5ee023c
Verified
Commit
a5ee023c
authored
Nov 30, 2021
by
Chocobozzz
Browse files
Fix redundancy timeout
parent
af48e345
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/hls.ts
View file @
a5ee023c
...
@@ -130,7 +130,7 @@ function downloadPlaylistSegments (playlistUrl: string, destinationDir: string,
...
@@ -130,7 +130,7 @@ function downloadPlaylistSegments (playlistUrl: string, destinationDir: string,
for
(
const
fileUrl
of
fileUrls
)
{
for
(
const
fileUrl
of
fileUrls
)
{
const
destPath
=
join
(
tmpDirectory
,
basename
(
fileUrl
))
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
)
const
{
size
}
=
await
stat
(
destPath
)
remainingBodyKBLimit
-=
(
size
/
1000
)
remainingBodyKBLimit
-=
(
size
/
1000
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment