GithubHelp home page GithubHelp logo

Server hangs every few days about minidyndns HOT 2 CLOSED

arkanis avatar arkanis commented on June 15, 2024
Server hangs every few days

from minidyndns.

Comments (2)

arkanis avatar arkanis commented on June 15, 2024

Hi Catscrash,

I noticed that, too. In my case it's a router that updates the IP address via HTTP every 5 minutes. Unfortunately the router sometimes forgets to close the TCP connection used for the HTTP request. It just keeps open forever. It seems that whenever I think that something is so stupidly simple that no one can screw it up there's always a router somewhere that screws it up. :(

Since the server handles TCP requests in a blocking manner within the event loop this pretty much blocks the entire event loop. The assumption was that every router would mange to properly send a few characters over a TCP connection and that I can simplify the server with that. Bad idea. I looked around a bit and a possible workaround is to use one of Rubys buildin TCP servers for the job. I'm not sure if the TCP server is still in the stdlib so maybe it's best to just spawn a thread for each connection (and rely on the global interpreter lock). Not perfect but not many lines of code.

Unfortunately I'm still quite busy at work and it'll probably take some time until I can look into it. I'll keep you updated.

from minidyndns.

arkanis avatar arkanis commented on June 15, 2024

Hi there. I updated some parts of minidyndns and the newer version shouldn't have any trouble with strange long running HTTP requests blocking the DNS server. At least in my tests. :)

Feel free to give the new version a try. You can reopen the issue if you still experience some hanging.

from minidyndns.

Related Issues (9)

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.