-
-
Notifications
You must be signed in to change notification settings - Fork 24
Description
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
Line 64 in 6be05b8
| 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.