Skip to content

fix: add delay to socket error#150

Open
jpetrocik wants to merge 1 commit intoWesSouza:mainfrom
jpetrocik:connect_retries_on_error
Open

fix: add delay to socket error#150
jpetrocik wants to merge 1 commit intoWesSouza:mainfrom
jpetrocik:connect_retries_on_error

Conversation

@jpetrocik
Copy link

The TV network interface often becomes active before the service on port 9761 is fully booted. This results in immediate ECONNREFUSED errors.

Previously, the code retried immediately upon failure, consuming all retry attempts instantly before the TV service could start.

Added a setTimeout to the error handler to introduce a delay between retries, ensuring the TV has time to finish booting before we stop trying.

The TV network interface often becomes active before the service on port 9761 is fully booted. This results in immediate `ECONNREFUSED` errors.

Previously, the code retried immediately upon failure, consuming all retry attempts instantly before the TV service could start.

Added a `setTimeout` to the error handler to introduce a delay between retries, ensuring the TV has time to finish booting before we stop trying.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant