Giter Club home page Giter Club logo

Comments (5)

achbed avatar achbed commented on May 25, 2024

I've currently resorted to a "ping" and service restart if that fails using Drupal. It's checking at most once every 5 minutes. This is why I've added the "pick up where left off playing last time" code to the dev branch - prevents the streams from jumping back to 0 every time a restart happens.

from deefuzzer.

achbed avatar achbed commented on May 25, 2024

Well, after a server-level update and reboot, everything seems to be working much better (3 days since reboot and no more crash/restarts). If I don't have any more crashes in a few more days, I'll close this issue.

from deefuzzer.

yomguy avatar yomguy commented on May 25, 2024

Good news!
But ping_server() technic is really nasty although it is the only simple method I found to check if the network is ready (and then waiting silently). Would you see another method for this?

from deefuzzer.

achbed avatar achbed commented on May 25, 2024

Well, my "ping" checks are actually grabbing the stream status from the icecast server, parsing it, and checking to see if there are any active mountpoints. The symptom is that the source connections close, so icecast reports an empty server status for streams that are sourced from deefuzzer. If this check returns no valid deefuzzer streams, I fire off a root-level service deefuzzer restart (through a shell script and sudo abstraction layer for security). The restart does a kill -9 before launching another instance of deefuzzer to ensure things are stopped properly.

I'm not sure about network status pings between deefuzzer and the icecast server - ping_server seems to be the least of bad options.

from deefuzzer.

achbed avatar achbed commented on May 25, 2024

Solved a different way via #45

from deefuzzer.

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.