Skip to content
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

Add retry to Hamlib rig_open call #484

Merged
merged 1 commit into from
Aug 8, 2023
Merged

Conversation

bjpetit
Copy link
Contributor

@bjpetit bjpetit commented Jul 31, 2023

I've seen a few instances where the rigctld process will have started, but the socket isn't open yet. In my systemd setup, which ensures rigctld is started before direwolf starts, direwolf can start and try to call rig_open and get a connection refused error. If the rig_open is tried a few seconds later, the connection opens just fine.
This change adds a retry loop which tries up to 5 times to run rig_open. If the call fails the 5 time, direwolf will exit.

rig_open call. If the rig_open continues to fail after 5 tries,
exit.
@wb2osz wb2osz merged commit a87b72e into wb2osz:dev Aug 8, 2023
7 of 9 checks passed
@wb2osz
Copy link
Owner

wb2osz commented Aug 8, 2023

Thank you for diagnosing this problem and providing a solution.

bjpetit added a commit to bjpetit/direwolf that referenced this pull request Jul 13, 2024
…#484)

rig_open call. If the rig_open continues to fail after 5 tries,
exit.
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.

2 participants