Do not log ECONNRESET errors when serving transcoded video files (#4099)

This commit is contained in:
its-josh4 2023-09-10 19:46:21 -07:00 committed by GitHub
parent 953867f611
commit 06d76307c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}