Connecting to an amqps url...

73 views
Skip to first unread message

Robert Matthews

unread,
Feb 25, 2016, 5:25:40 PM2/25/16
to php-amqplib-devel
I have more experience with python using pika to connect to a rabbitmq instance...but I'm stumped on this one.

I have a rabbitmq cluster with an endpoint uri of: amqps://[username]:[password]@[host]:[port]/rabbitmq-test

I try to connect after parsing the url and it just hangs forever (at least for a time that feels like forever).  This happens with AMQPStreamConnection, AMQPConnection, or AMQPSSLConnection.  I think that it relates to the amqps protocol, where php-amqplib is expecting amqp.

Is it possible to connect using amqps with php-ampqplib?  And if so what are the dirty little tricks to make it work?

And advice would be greatly appreciated...

Thanks in advance,

--Robert
Reply all
Reply to author
Forward
0 new messages