Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vhost issue #36

Open
jlorie opened this issue Jan 19, 2014 · 0 comments
Open

vhost issue #36

jlorie opened this issue Jan 19, 2014 · 0 comments

Comments

@jlorie
Copy link

jlorie commented Jan 19, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant