Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
create_channel on a connection intentionally closed by the user shown immediately throw an argument/illegal state exception #465
I just found this (weird?) behaviour: when creating a channel after a connection.close Bunny tries to recover from a network failure thus failing and getting into a Timeout exception. Is the client supposed to behave in this way? See attached code:
require 'bunny' client = Bunny.new client.start channel = client.create_channel channel.default_exchange.publish "hello" client.stop client.create_channel # Bunny tries to recover from a network failure #<Bunny::Session:0x7fd0b8152300 firstname.lastname@example.org:5672, vhost=/, addresses=[127.0.0.1:5672]>: Recovering from a network failure... #<Bunny::Session:0x7fd0b8152300 email@example.com:5672, vhost=/, addresses=[127.0.0.1:5672]>: Retrying connection on next host in line: 127.0.0.1:5672 # Timeout::Error (Timeout::Error)