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 69bb595 commit 40e5883Copy full SHA for 40e5883
sqlx-postgres/src/listener.rs
@@ -283,15 +283,7 @@ impl PgListener {
283
284
// The connection is dead, ensure that it is dropped,
285
// update self state, and loop to try again.
286
- Err(Error::Io(err))
287
- if matches!(
288
- err.kind(),
289
- io::ErrorKind::ConnectionAborted |
290
- io::ErrorKind::UnexpectedEof |
291
- // see ERRORS section in tcp(7) man page (https://man7.org/linux/man-pages/man7/tcp.7.html)
292
- io::ErrorKind::TimedOut |
293
- io::ErrorKind::BrokenPipe
294
- ) =>
+ Err(Error::Io(err)) =>
295
{
296
if let Some(mut conn) = self.connection.take() {
297
self.buffer_tx = conn.inner.stream.notifications.take();
0 commit comments