Skip to content

vhost issue #36

Description

@jlorie

I always got the error "Connection refused" when I am trying to connect to CloudAMQP server.
I realized that the library had problems when a QAMQP::Client(qurl (connectionString)) instance is created, the attribute virtualHost con PrivateClient always starts with "/".
I solve the problem validating this on ClientPrivate::parseCnnString( const QUrl & con )

    QString vhost(con.path().remove( QRegExp("^/+|/+$") ));
    {
        if (vhost.isEmpty())
            vhost = QString("/");

        q->setVirtualHost(vhost);
    }

Sorry, for my english
Greetings

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions