AllStarLink / app_rpt

Refactoring and upgrade of AllStarLink's app_rpt, etc.
5 stars 4 forks source link

app_rpt: Outstream resource temporarily unavailable #223

Closed KB4MDD closed 11 months ago

KB4MDD commented 11 months ago

During internet outages, while using outstream, the log files quickly fill with the message "resource temporarily unavailable". In some cases, the system never recovers from the failure. This results in megabytes of log messages and manual intervention.

This change adds a timer to monitor the outstream writes. The error message is only reported on the first occurrence. After 60 seconds, if the internet outage has not recovered or the external process has not recovered, app_rpt will kill the external process. app_rpt will then attempt to start the external process again. In the event that we do successfully recover, a message is written to the log to indicate a successful recovery.

This closes #212.