不要怂,就是干,撸起袖子干!

Commit 3709bf01 by Eugene Shilin Committed by Sushant

fix(mysql): mark closed sockets invalid (#8112)

1 parent 8bed06aa
Showing with 2 additions and 1 deletions
...@@ -168,7 +168,8 @@ class ConnectionManager extends AbstractConnectionManager { ...@@ -168,7 +168,8 @@ class ConnectionManager extends AbstractConnectionManager {
} }
validate(connection) { validate(connection) {
return connection && connection._fatalError === null && connection._protocolError === null && !connection._closing; return connection && connection._fatalError === null && connection._protocolError === null && !connection._closing &&
!connection.stream.destroyed;
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!