Fix ECONNRESET errors on Windows

As discussed in #110, this commit suppresses ECONNRESET on Windows.
next
Sayan Nandan 3 years ago
parent ea1381269b
commit 4354bfc0f9

@ -332,6 +332,11 @@ where
self.con.close_conn_with_error(r).await?
}
Ok(QueryResult::Empty) => return Ok(()),
#[cfg(windows)]
Err(e) => match e.kind() {
ErrorKind::ConnectionReset => return Ok(()),
_ => return Err(e.into())
},
Err(e) => return Err(e.into()),
}
}

Loading…
Cancel
Save