Add a couple more places in client where we will try a reconnect

pull/146/head
Chip Senkbeil 2 years ago
parent f3e04e1832
commit d228c85ef4
No known key found for this signature in database
GPG Key ID: 35EF1F8EC72A4131

@ -150,7 +150,11 @@ where
Err(x) if x.kind() == io::ErrorKind::WouldBlock => {
write_blocked = true
}
Err(x) => error!("Send failed: {x}"),
Err(x) => {
error!("Send failed: {x}");
needs_reconnect = true;
continue;
}
},
Err(x) => {
error!("Unable to serialize outgoing request: {x}");
@ -169,6 +173,8 @@ where
Err(x) if x.kind() == io::ErrorKind::WouldBlock => write_blocked = true,
Err(x) => {
error!("Failed to flush outgoing data: {x}");
needs_reconnect = true;
continue;
}
}
}

Loading…
Cancel
Save