Module s2n_tls::pool

source ·
Expand description

Utilities to handle reusing connections.

Creating a single new connection requires significant memory allocations (about 50-60 KB, according to some tests). Instead of allocating memory for a new connection, existing memory can be reused by calling Connection::wipe().

The Pool trait allows applications to define an Object pool that wipes and stores connections after they are dropped.

We also provide a basic Pool implementation, ConfigPool, that implements the pool as a VecDeque with a fixed maximum size.



  • An object pool for wiping and reusing connection memory.

Type Aliases§