48495051525354
cmdCon = new OutboundTcpConnection(this); cmdCon.start(); ackCon = new OutboundTcpConnection(this); ackCon.start(); metrics = new ConnectionMetrics(id, this); }
91929394959697
for (OutboundTcpConnection conn : new OutboundTcpConnection[] { cmdCon, ackCon }) conn.softCloseSocket(); // release previous metrics and create new one with reset address metrics.release(); metrics = new ConnectionMetrics(resetedEndpoint, this); }