SwarrotBundle icon indicating copy to clipboard operation
SwarrotBundle copied to clipboard

fix(pecl): Check if the connection is connected when creating a channel

Open u2032 opened this issue 2 years ago • 0 comments

If the connection is not connected, the constructor of the AMQPChannel throws an exception stating : Could not create channel. No connection available.

In particular, if the first connect() method call failed, the ampqconnection is stored in the class even if the connection is not opened and all future calls to the getChannel() method didn't try to reconnect, failing with the above exception

u2032 avatar Sep 01 '21 14:09 u2032