Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssl: reuse *tls.Config if connection settings are identical #1033

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Mar 25, 2021

  1. ssl: reuse *tls.Config if connection settings are identical

    Previously, we would reload and re-parse a certificate from disk every
    single time we initialized a connection and the sslrootcert setting
    was enabled. This results in a lot of allocations that can be avoided.
    
    Instead, save the *tls.Config for a given configuration hash, and
    reuse it when we see it again.
    
    Fixes lib#1032.
    kevinburke1 committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    11ecdbf View commit details
    Browse the repository at this point in the history