Comments (2)
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.
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)
- Any plan for supporting HTTPS connection ? HOT 5
- ivp6 request times out HOT 4
- Not working HOT 5
- redirecting output only writes at end of program HOT 3
- Does this dns server work over the public internet or only as a local network dns server? HOT 3
- Ruby server stops unexpectedly due to strange request parsing error HOT 2
- Consider checking if current IP in record had changed or remained the same and thus avoid unnecessary disk writes to db.yml file HOT 1
- Video Tutorial HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minidyndns.