From 06d76307c3c0ee589e72f4adaf274f283aa74c81 Mon Sep 17 00:00:00 2001 From: its-josh4 <74079536+its-josh4@users.noreply.github.com> Date: Sun, 10 Sep 2023 19:46:21 -0700 Subject: [PATCH] Do not log ECONNRESET errors when serving transcoded video files (#4099) --- pkg/ffmpeg/stream_transcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ffmpeg/stream_transcode.go b/pkg/ffmpeg/stream_transcode.go index c5593ab8b..8c19af3a6 100644 --- a/pkg/ffmpeg/stream_transcode.go +++ b/pkg/ffmpeg/stream_transcode.go @@ -266,7 +266,7 @@ func (sm *StreamManager) getTranscodeStream(ctx *fsutil.LockContext, options Tra // process killing should be handled by command context _, err := io.Copy(w, stdout) - if err != nil && !errors.Is(err, syscall.EPIPE) { + if err != nil && !errors.Is(err, syscall.EPIPE) && !errors.Is(err, syscall.ECONNRESET) { logger.Errorf("[transcode] error serving transcoded video file: %v", err) }