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

Improve handling of bitcoind-related connection/timeout issues #85

Merged
merged 2 commits into from
May 29, 2024

Conversation

shesek
Copy link
Collaborator

@shesek shesek commented May 14, 2024

No description provided.

@shesek
Copy link
Collaborator Author

shesek commented May 14, 2024

Not sure what the actual timeout value should be, used 5 seconds as a placeholder. Thoughts?

@shesek shesek changed the title Add timeout to Daemon communication with bitcoind Improve handling of bitcoind-related connection/timeout issues May 14, 2024
@shesek shesek force-pushed the 202405-bitcoind-timeout branch 2 times, most recently from bc09e86 to 8c3fc1c Compare May 15, 2024 04:34
@shesek
Copy link
Collaborator Author

shesek commented May 15, 2024

Increased timeout to 10 seconds, removed the commit that added a reconnection limit (forced-pushed)

src/daemon.rs Outdated Show resolved Hide resolved
@philippem
Copy link
Collaborator

squash?

Configurable via the DAEMON_{CONNECTION,READ,WRITE}_TIMEOUT environment variables.
So that they will be handled by the retry_request_batch() automatic
retry mechanism, which only applies to connection-related errors.
@shesek shesek merged commit 672b785 into Blockstream:new-index May 29, 2024
2 checks passed
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