Giter Site home page Giter Site logo

varnish-encrypto's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

varnish-encrypto's Issues

Write extensive documentation

  1. Address what it solves
  2. How the connection pooling improves latency.
  3. How to run this code.
  4. Benchmark between directly hitting backend with TLS and proxying through varnish encrypto with connection pooling.

Listen on unix socket

Currently we are listening on TCP sockets on the client side. Communication with client can be boosted with talking over Unix socket.

Create backend connection pooling

Currently there is no backend connection pooling. Renegotiating TLS handshake for every request is very expensive. This overhead can be remediated by connection pooling

Ssl_read hits buffer limit

When the response content length is over 16384 bytes, the response fails because ssl_read's buffer can only accomodate up to 16384bytes.

Create a ringbuffer to call send only once

Currently in function.hpp we use SSL_read to read from the backend. The problem is that the TLS buffer is only 16kbs and for big pages, there will be many iterations to read all the TLS records from the backend. Since we are calling send on every TLS record we are calling a system call many times just to serve a single page. This anti-pattern should be avoided by using a ring buffer.

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.