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 6a4b043 commit 46412eaCopy full SHA for 46412ea
lightning-block-sync/src/http.rs
@@ -251,8 +251,7 @@ impl HttpClient {
251
} }
252
253
// Read and parse status line
254
- // Note that we first reset the read timeout to give us extra time in case the responding
255
- // 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.
256
let status_line = read_line!(TCP_STREAM_RESPONSE_TIMEOUT.as_secs() / TCP_STREAM_TIMEOUT.as_secs())
257
.ok_or(std::io::Error::new(std::io::ErrorKind::UnexpectedEof, "no status line"))?;
258
let status = HttpStatus::parse(&status_line)?;
0 commit comments