Git Product home page Git Product logo

Comments (5)

alanxz avatar alanxz commented on August 27, 2024

Seems like this would be an easy feature to add. I will look into it.

from rabbitmq-c.

alanxz avatar alanxz commented on August 27, 2024

Note for myself when I get around to actually doing the work:
http://www.lugod.org/presentations/ipv6programming/PortMeth.pdf

from rabbitmq-c.

alanxz avatar alanxz commented on August 27, 2024

@bodgit - I've created a patch to support IPv6, but I have no way to test it (IPv6 is turned off at work, and my router at home doesn't support it either). If you have a broker running on a machine capable of IPv6, could you try building the code referenced in #26, and run one of the examples and connect over IPv6 and verify what I did was correct.

If it works I'll merge it.

from rabbitmq-c.

bodgit avatar bodgit commented on August 27, 2024

I've just tried connecting with `amqp_consumer' and it seems to work with both a hostname and a literal IPv6 address.

It seems to prefer the IPv4 address first for a host that resolves to both address types (but that could be something to do with my client host), but if the IPv4 connect fails then it retries with the IPv6 address and succeeds.

from rabbitmq-c.

alanxz avatar alanxz commented on August 27, 2024

Good to see it appears to work.

The code attempts to connect to the different endpoints in the order that getaddrinfo returns them in. The manpage for getaddrinfo says the ordering is defined in RFC 3484, and I'm not sure how to apply all the rules to understand why the IPv4 address gets tried before the IPv6 address.

from rabbitmq-c.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.