src/MysqlPool/MySQLPool.php
public static function reconnect(\swoole_server $server, int $fd, MysqlProxy $conn, string $connName)
    {
        if ($conn->client->isConnected()) {
            $conn->client->close();
        }
        $old_id = spl_object_hash($conn);
        unset(self::$busyConns[$connName][$old_id]);
        unset(self::$connsNameMap[$old_id]);
        self::$lastConnsTime[$old_id] = 0;

        return self::initConn($server, $fd, $connName);
    }
public static function reconnect(\swoole_server $server, int $fd, MysqlProxy $conn, string $connName)
    {
        if ($conn->client->isConnected()) {
            $conn->client->close();
        }
        $old_id = spl_object_hash($conn);
        unset(self::$busyConns[$connName][$old_id]);
        unset(self::$connsNameMap[$old_id]);
        self::$lastConnsTime[$old_id] = 0;

        return self::initConn($server, $fd, $connName);
    }
断重链.

@param \swoole_server      $server
@param int                 $fd
@param \SMProxy\MysqlProxy $conn
@param string              $connName

@return mixed

@throws \SMProxy\MysqlPool\MySQLException
@throws \SMProxy\SMProxyException