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

Allow configuration of separate RPC socket connect timeout #99

Open
craigraw opened this issue Jun 6, 2022 · 0 comments
Open

Allow configuration of separate RPC socket connect timeout #99

craigraw opened this issue Jun 6, 2022 · 0 comments

Comments

@craigraw
Copy link

craigraw commented Jun 6, 2022

The configuration parameter --bitcoind_timeout was added in 5f92c47, which configures the connect, read and write timeouts on socket connections to Core RPC.

However, one does not typically want the same values for the socket connect timeout as the read and write timeouts. Importing a wallet using importmulti can take many minutes or even hours, much longer than a user would want to wait for a timeout when testing a connection. Therefore, currently it is not possible to both set a short connect timeout and a long read timeout to handle both situations.

It would be helpful to have an additional --bitcoind_connect_timeout parameter which specifically sets only the value for RPC socket connections at

TcpStream::connect_timeout(&addr, timeout)?

Alternatively, the current --bitcoind_timeout parameter could be altered to only control the socket connect timeout, since it is likely that read and write timeouts should be indefinite anyway.

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

No branches or pull requests

1 participant