From 9a5c71fddce8e6c77a993f093d9cda4cfb080fcd Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 30 Jul 2015 22:12:52 -0700 Subject: [PATCH] Minor fix --- lib/ffmpeg.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ffmpeg.js b/lib/ffmpeg.js index 0461cbc5..8363f806 100644 --- a/lib/ffmpeg.js +++ b/lib/ffmpeg.js @@ -158,7 +158,8 @@ exports.ffprobe = function ffprobe(filename, cb) { var timer = setTimeout(function () { Logger.errlog.log("Possible runaway ffprobe process for file " + filename); fflog("Killing ffprobe for " + filename + " after " + (TIMEOUT/1000) + " seconds"); - childErr = new Error("File query exceeded time limit of 10 seconds"); + childErr = new Error("File query exceeded time limit of " + (TIMEOUT/1000) + + " seconds"); child.kill("SIGKILL"); }, TIMEOUT); @@ -172,7 +173,7 @@ exports.ffprobe = function ffprobe(filename, cb) { child.stderr.on("data", function (data) { stderr += data; - if (stderr.match(/the tls connection was non-properly terminated/i)) { + if (stderr.match(/the tls connection was non-properly terminated|http error 416/i)) { fflog("Killing ffprobe for " + filename + " due to TLS error"); childErr = new Error("Remote server closed connection unexpectedly"); child.kill("SIGKILL");