We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c12b4b commit 8bb427eCopy full SHA for 8bb427e
lightning-block-sync/src/http.rs
@@ -249,8 +249,7 @@ impl HttpClient {
249
} }
250
251
// Read and parse status line
252
- // Note that we first reset the read timeout to give us extra time in case the responding
253
- // node is blocked waiting on some slow I/O operation such as UTXO cache flushing.
+ // Note that we allow retrying a few times to reach TCP_STREAM_RESPONSE_TIMEOUT.
254
let status_line = read_line!(TCP_STREAM_RESPONSE_TIMEOUT.as_secs() / TCP_STREAM_TIMEOUT.as_secs())
255
.ok_or(std::io::Error::new(std::io::ErrorKind::UnexpectedEof, "no status line"))?;
256
let status = HttpStatus::parse(&status_line)?;
0 commit comments