Git Product home page Git Product logo

Comments (3)

csstaub avatar csstaub commented on May 19, 2024

The most computationally expensive part of TLS is the handshake. To reduce the overhead from handshakes I would (1) use persistent long-lived connections where possible and (2) make sure to use an ECDSA (on P-256) certificate instead of an RSA certificate. This should be faster then RSA, as P-256 is implemented in assembly (on amd64 and s390x at least) whereas RSA is not. Also, make sure your CPU supports AES-NI instructions.

Additionally, you can leverage the SO_REUSEPORT feature (on UNIX) to run multiple instances of Ghostunnel in parallel on the same host/port and with the same target. The kernel will then load-balance new connections evenly between each Ghostunnel process which can help scale to the CPU resources in your system.

from ghostunnel.

csstaub avatar csstaub commented on May 19, 2024

To add to that, right now Ghostunnel always maps client connections and backend connections 1:1, and there's no way to keep those open or re-use if the client closes them. Since Ghostunnel is protocol-agnostic it's not (in general) safe to keep the connections open. So if you're specifically forwarding HTTP you might be better off with a protocol-specific proxy like haproxy that can do things like cache, introspect, etc. the HTTP requests.

from ghostunnel.

csstaub avatar csstaub commented on May 19, 2024

Ah and the log is normal/expected. The use of closed network connection just means the client and/or server closed the connection, Ghostunnel noticed it's closed, and then terminated the other end of the connection.

from ghostunnel.

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.