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

More network_loop() exception handling and fix for sleep_delay. #3718

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

moodyjon
Copy link
Contributor

@moodyjon moodyjon commented Dec 6, 2022

Fixes #3699

sleep_delay seemed to not work as originally intended --- the asyncio.sleep(30) was always a fixed delay.

@coveralls
Copy link

coveralls commented Dec 6, 2022

Coverage Status

Coverage decreased (-0.06%) to 56.581% when pulling 154921a on moodyjon:network_loop1 into 6258651 on lbryio:master.

Correct sleep_delay logic to make it back off exponentially.
Add small random jitter to sleep_delay so reconnects don't
all happen at the same time when SPV goes down.
…ished.

Tweak sleep_delay logic so failures during initial RPC sequence also back off.
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.

client stops retrying hub connections
3 participants