-
Notifications
You must be signed in to change notification settings - Fork 46
Description
I'm running a containerized version under k8s and having a problem after device resets. It can lose connection to the underlying serial device and hang on a repeated device-not-found error. (It still answers TCP connections, which prevents the health checks from detecting the problem.)
I think an option to simply exit on errors, instead of retrying, would add a great deal of operational flexibility without affecting existing users. (This would also make it easier to work around broken hardware; for example, I've seen cheap tty adapters that requires a usb reset between attempts. If ser2sock exits on error, a simple wrapper could detect the wedged hw and reset or even power-cycle it before restarting ser2sock.)
Unfortunately everything is working this morning so I don't have log examples, but I'll keep an eye out and add them if needed.