Giter VIP home page Giter VIP logo

Comments (2)

mrunge avatar mrunge commented on June 4, 2024

Hi,

thank you for the detailed writeup, this is excellent!

I wonder if you are running into an ordering issue. I have seen this with other daemons too; the resolution would be to launch collectd when all networks are up. The underlying issue is in my understanding, that there is no (good?) way to update the addresses to listen on when collectd (or other processes) are already running.

from collectd.

Wolf480pl avatar Wolf480pl commented on June 4, 2024

The underlying issue is in my understanding, that there is no (good?) way to update the addresses to listen on when collectd (or other processes) are already running.

There is, it's called binding to the wildcard address (0.0.0.0, ::, INADDR_ANY, etc.).

If collectd just bound to hardcoded 0.0.0.0 before all networks are up, all would be fine.
However, it tries to obtain the 0.0.0.0 sockaddr through getaddrinfo instead.
And getaddrinfo would resolve it just fine, even before all networks are up, if it wasn't for AI_ADDRCONFIG

resolution would be to launch collectd when all networks are up

Other daemos that bind to 0.0.0.0 or 127.0.0.1 work just fine when they launch before all networks are up.

If I was trying to bind my LAN address (eg. 192.168.1.20) before all networks are up, then that would be an ordering issue. the wildcard address should work just fine regardless of networks being up.

from collectd.

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.