Safe Haskell | None |
---|---|
Language | Haskell2010 |
In-memory TLS session manager.
- Limitation: you can set the maximum size of the session data database.
- Automatic pruning: old session data over their lifetime are pruned automatically.
- Energy saving: no dedicate pruning thread is running when the size of session data database is zero.
- (Replay resistance: each session data is used at most once to prevent replay attacks against 0RTT early data of TLS 1.3.)
Synopsis
- data Config = Config {
- ticketLifetime :: !Int
- pruningDelay :: !Int
- dbMaxSize :: !Int
- defaultConfig :: Config
- newSessionManager :: Config -> IO SessionManager
Documentation
Configuration for session managers.
Config | |
|
defaultConfig :: Config Source #
Lifetime: 1 day , delay: 10 minutes, max size: 1000 entries.
newSessionManager :: Config -> IO SessionManager Source #
Creating an in-memory session manager.