Coder Social home page Coder Social logo

Update channel loop bug about headscale HOT 8 CLOSED

juanfont avatar juanfont commented on July 4, 2024
Update channel loop bug

from headscale.

Comments (8)

kradalby avatar kradalby commented on July 4, 2024 1

Thats the stupidest I have been in a long time, I hit the wrong key and did not scroll far enough down 🤦‍♀️

from headscale.

kradalby avatar kradalby commented on July 4, 2024 1

Fixed in Main

from headscale.

jsiebens avatar jsiebens commented on July 4, 2024

for the record, I've seen the same behaviour, causing high CPU usage during the loop

from headscale.

kradalby avatar kradalby commented on July 4, 2024

I think I have noticed this as well, I will take a dive into it.

Based on the PR from that commit, it has ended up being a trade off of ensuring clients are up to date vs not getting all updates. For the time being I would say its better, but I will dive into it when I have some time.

I suspect its a timing and channel/lock issue.

from headscale.

kradalby avatar kradalby commented on July 4, 2024

@busimus @jsiebens Hi, I am sure there is something, and that it is causing high cpu load, but I am struggling to see the loop in the example log provided.

The updates, and the "check if update is necessary" seem to be working as intended. I will agree that the update is somewhat aggressive, but I have not managed to spot the loop.

I might have read the wrong parts of the log, since it is quite comprehensive, would you manage to give me some pointers to how you understand it?

Meanwhile, I'll have a think if it can be made a bit less aggressive.

from headscale.

busimus avatar busimus commented on July 4, 2024

I truncated most of the loop and replaced it with ..., but I left a few iterations of the repeating five lines before and after that (e.g. lines from 220 to 224).

from headscale.

kradalby avatar kradalby commented on July 4, 2024

I think this is resolved in #142, could any of you take it for a spin?

from headscale.

busimus avatar busimus commented on July 4, 2024

Yep, doesn't happen anymore with that PR.

from headscale.

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.