diff --git a/src/adapter/socket/mysql.js b/src/adapter/socket/mysql.js index 254dd7cc..f84717ab 100644 --- a/src/adapter/socket/mysql.js +++ b/src/adapter/socket/mysql.js @@ -124,6 +124,10 @@ export default class extends Base { if(this.pool && connection.release){ connection.release(); } + //Connection lost: The server closed the connection. + if(err.code === 'PROTOCOL_CONNECTION_LOST'){ + this.close(); + } if (this.config.log_sql) { think.log(sql, 'SQL', startTime);