Skip to content

Connection fails when an IPv6 attempt is made before IPv4 #55

@semicoleon

Description

@semicoleon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions