My simple test case for using this library failed when connecting to a local rabbitmq instance on localhost. I eventually realized that this was due to the AMQPConnectionMultiplexHandler being created outside of the channelInitializer closure (so the IPv6 attempt would fail, and then during the IPv4 attempt the same handler was used which already thought it was closed)
I'm not entirely sure why rabbitmq isn't allowing IPv6 connections on localhost when started with the default config but it seems to be happening consistently for me with RabbitMQ 4.2.2 installed via homebrew on macOS Tahoe.
My simple test case for using this library failed when connecting to a local rabbitmq instance on
localhost. I eventually realized that this was due to theAMQPConnectionMultiplexHandlerbeing created outside of thechannelInitializerclosure (so the IPv6 attempt would fail, and then during the IPv4 attempt the same handler was used which already thought it was closed)I'm not entirely sure why rabbitmq isn't allowing IPv6 connections on localhost when started with the default config but it seems to be happening consistently for me with RabbitMQ 4.2.2 installed via homebrew on macOS Tahoe.