AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
3.8k stars 309 forks source link

12:47:39.089 ERR github.com/AlexxIT/go2rtc/internal/mjpeg/init.go:75 > error="write tcp 192.168.1.120:1984->192.168.1.120:39460: write: broken pipe" #1169

Open puterboy opened 1 month ago

puterboy commented 1 month ago

This is not exactly a bug but more of a question as I am wondering how the above error condition should be logged/treated. I am using Obico for Octoprint which takes a snapshot from my (two) cameras every couple of seconds. When returning the snapshot takes too long, Obico aborts the snapshot and tries again... this is what presumably triggers the above error since presumably go2rtc is still trying to send the snapshot.

This happens only sporadically so I could just ignore the errors of course...

But was wondering if you had any thoughts on a better way of avoiding or handling such errors... or is it just the nature of the beast...

AlexxIT commented 1 month ago

I think I can add abort connection check.