mirror of
https://github.com/zoriya/flood.git
synced 2026-06-03 19:21:48 +00:00
server: torrents: apply 10-second timeout to mediainfo
This commit is contained in:
@@ -676,7 +676,7 @@ router.get('/:hash/mediainfo', async (req, res) => {
|
||||
const mediainfoProcess = childProcess.execFile(
|
||||
'mediainfo',
|
||||
[contentPath],
|
||||
{maxBuffer: 1024 * 2000},
|
||||
{maxBuffer: 1024 * 2000, timeout: 1000 * 10},
|
||||
(error, stdout, stderr) => {
|
||||
if (error) {
|
||||
callback(null, error);
|
||||
|
||||
Reference in New Issue
Block a user