Skip to content

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

Open
moodyjon wants to merge 2 commits intolbryio:masterfrom
moodyjon:network_loop1
Open

More network_loop() exception handling and fix for sleep_delay.#3718
moodyjon wants to merge 2 commits intolbryio:masterfrom
moodyjon:network_loop1

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