Skip to content

PSQLConnection recreates a new SSLContext for new connection #172

Closed
@fabianfett

Description

@fabianfett

Currently PSQLConnection recreates a new SSLContext for every encrypted connection. This is very wasteful. The SSLContext can be cached and shared between all connections to the same remote.

For more context:
AHC: cache NIOSSLContext (saves 27k allocs per conn) #362

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions