-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EADDRINUSE crash after several hours #10
Comments
Fwiw I added snapshot ports and turned on debug logging and it hasn't happened since. It was crashing every 2-3 hours before. 🤷♂️ |
Its quite possible Unify was asking for a snapshot and crashing the proxy. I will try and look into the logs a bit more. |
I will make snapshot ports a requirement in the config file.. the addr in use is common with adapters that need different port numbers used despite virtual IP's working. |
It took longer but it happened again. Debug logging yielded no further insight. I suspect the issue is that all of my streams are coming from a single eight channel NVR: The tcp-proxy used in this project has a "unique key" buffer implementation that assumes you aren't making multiple proxies to the same IP/port. I find myself wondering:
Thank you for your project here, it's serving as a valuable proof-of-concept for a scenario I had long given up on, and if the concepts here are folded into go2rtc that would be very powerful and widely appreciated. |
I have been busy with a few other things. But @acortelyou - it is quite possible all it needs is the UUID and not a separate MAC. I just went off the info on the og repo. Skimming the ONVIF specs they don't talk about MACs anywhere.. but I know they use a UDP Broadcast that replies from the virtual MAC with the IP address... so if we don#t need the MACs .. I'll bin them off @balgerion I wonder if the snapshot issue could be something to do with file in use.. if it were dotnet we would have a much nicer stack trace 😄 the EADDRINUSE 0.0.0.0 does suggest port or IP in use on the main interface.. maybe its something else on the IP stack failing. |
I'm tracking a reliable crash after several hours of operation with the error message below.
I've enabled debug logging going forward and will do some more investigation after collecting more info.
The text was updated successfully, but these errors were encountered: