tlsHandshakesPerTick property

int tlsHandshakesPerTick
final

The maximum number of costly TLS handshake steps in one turn of the event loop of each server isolate. A wave of new TLS clients must not stop the clients that are already connected. A costly step signs or decrypts with the certificate key. This takes approximately 1 ms for an RSA 2048 key. A usual TLS 1.3 handshake has one costly step. A TLS 1.3 handshake with a HelloRetryRequest, and a TLS 1.2 handshake, have two. The other handshakes wait in a queue for the next turns.

A lower value gives a shorter wait to the connected clients, but the new clients connect more slowly. A higher value connects the new clients more quickly, but the connected clients wait longer. This setting has an effect only while many new TLS clients connect at the same time. The server does not start with a value less than 1. DoxHttpServer.binder (dox_http_server) only: the native server ignores it. Default 8.

Implementation

final int tlsHandshakesPerTick;