mirror of
https://github.com/actiontech/dble.git
synced 2026-01-06 04:40:17 -06:00
fix: heartbeat connection lacks the assignment of connectionTimeout
This commit is contained in:
@@ -338,7 +338,7 @@ public abstract class AbstractConnection implements Connection {
|
||||
if (buffer != null) {
|
||||
recycle(buffer);
|
||||
}
|
||||
this.cleanup(null);
|
||||
this.cleanup("it will not writeDirectly because connection has been closed.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ public class BackendConnection extends PooledConnection {
|
||||
super(channel, socketWR);
|
||||
this.instance = instance;
|
||||
DbInstanceConfig config = instance.getConfig();
|
||||
this.connectionTimeout = config.getPoolConfig().getConnectionTimeout();
|
||||
this.host = config.getIp();
|
||||
this.port = config.getPort();
|
||||
this.lastTime = TimeUtil.currentTimeMillis();
|
||||
|
||||
Reference in New Issue
Block a user