Skip to content

Commit 8b3759e

Browse files
committed
Allow retrying HTTP requests if we hit a socket timeout
1 parent 7297e13 commit 8b3759e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning-block-sync/src/http.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ impl HttpClient {
160160
Ok(bytes) => Ok(bytes),
161161
Err(e) => match e.kind() {
162162
std::io::ErrorKind::ConnectionReset |
163+
std::io::ErrorKind::WouldBlock |
163164
std::io::ErrorKind::ConnectionAborted |
164165
std::io::ErrorKind::UnexpectedEof => {
165166
// Reconnect if the connection was closed. This may happen if the server's

0 commit comments

Comments
 (0)