Git Product home page Git Product logo

pacyak's Issues

Catch upstream errors

You get the golang error messages for some types of failure. DNS lookup failures are one of them IIRC (with an err containing getsockopt that I can't reproduce atm due to an upstream proxy)

Investigate / consider alternative to goproxy

It's a bit more featured than we need and I suspect it may be dropping some connections on the floor.
The only use cases we need are accepting HTTP requests, CONNECT requests, establishing a connection with and copying the request to the target & copying the response back from the target.

Socket leak

After the proxy has been running a while it can have quite a few sockets open.

This is most likely an issue with go-proxy. The HTTP RFC states that connections may be closed at any time and that clients or servers should deal with it.

If there is no obvious cause for a socket leak then it'd make sense to track usage of connections and shut them down after a period of inactivity.

Error 'myIpAddress' is not defined

Very nice idea and definitely something I would use if I can make it work ...
For some reason all I am getting is

./pacyak  http://proxyconf/proxy.pac  --log-level debug
INFO[0001] PAC availability check                        available=true
INFO[0001] PAC availability check passed; switching from direct
ERRO[0008] Sandbox error!                                response= sandbox_error="ReferenceError: 'myIpAddress' is not defined" url="http://www.google.com/"
ERRO[0023] Error performing roundtrip                    error="dial tcp 172.217.22.164:80: i/o timeout"

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.