GithubHelp home page GithubHelp logo

Comments (4)

ryanchapman avatar ryanchapman commented on August 16, 2024

Hi,

Thanks and I'm glad that I could provide something that others find useful. Every time I come across an issue that google can't solve, I try to publish my solution because I know others will come across the same thing.

For your issue, I'm starting to wonder if you have an unreliable network. In #20, you reported seeing this:

2016/03/07 16:30:05 any_proxy.go:509: : INFO : dial(): ERR: could not connect to 10.0.7.214:443: dial tcp 10.0.7.214:443: no route to host

which would indicate that your route disappeared. Strange.

Can you run a loop for 24 hours to see if pings are dropped to your 10.0.7.214 or x.x.x.x endpoints (x.x.x.x in the x.x.x.x:80 output above)? Let me know if you need a loop syntax for bash(mac,linux)/powershell(win) and I'll see what I can do.

If you're interested in having any_proxy not quit when all upstreams are down and to just keep trying, I can probably add something to do that as well.

Ryan

from go-any-proxy.

mkunz7 avatar mkunz7 commented on August 16, 2024

I think that would be a good feature to aid in the stability of this program. We just have a script that watches it and reboots. I'll start a quick script that pings the main proxy to see if the link is going down. 10.0.7.214 is in a cloud environment that I wouldn't expect to stay up. I'll post the results later.

from go-any-proxy.

ryanchapman avatar ryanchapman commented on August 16, 2024

@mkunz7 ,

You can use -s=1 now to get the behavior you were looking for.

Ryan

from go-any-proxy.

mkunz7 avatar mkunz7 commented on August 16, 2024

Sorry it took so long. You were correct about the proxy losing connectivity. The fix works for the failing proxy.

from go-any-proxy.

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.