Skip to content

Commit

Permalink
Do not log ECONNRESET errors when serving transcoded video files (#4099)
Browse files Browse the repository at this point in the history
  • Loading branch information
its-josh4 authored Sep 11, 2023
1 parent 953867f commit 06d7630
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 06d7630

Please sign in to comment.