Skip to content

Commit

Permalink
Do not log ECONNRESET errors when serving transcoded video files
Browse files Browse the repository at this point in the history
  • Loading branch information
its-josh4 authored Sep 10, 2023
1 parent 50c4ac9 commit 4912dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ffmpeg/stream_transcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 4912dad

Please sign in to comment.