File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,10 @@ const TCP_STREAM_TIMEOUT: Duration = Duration::from_secs(5);
2727
2828/// Timeout for reading the first byte of a response. This is separate from the general read
2929/// timeout as it is not uncommon for Bitcoin Core to be blocked waiting on UTXO cache flushes for
30- /// upwards of a minute or more. Note that we always retry once when we time out, so the maximum
31- /// time we allow Bitcoin Core to block for is twice this value.
32- const TCP_STREAM_RESPONSE_TIMEOUT : Duration = Duration :: from_secs ( 120 ) ;
30+ /// upwards of 10 minutes on slow-ish devices (eg RPis with SSDs over USB). Note that we always
31+ /// retry once when we time out, so the maximum time we allow Bitcoin Core to block for is twice
32+ /// this value.
33+ const TCP_STREAM_RESPONSE_TIMEOUT : Duration = Duration :: from_secs ( 300 ) ;
3334
3435/// Maximum HTTP message header size in bytes.
3536const MAX_HTTP_MESSAGE_HEADER_SIZE : usize = 8192 ;
You can’t perform that action at this time.
0 commit comments