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

[Improvement] Load certificate and key at startup #7

Closed
rosahaj opened this issue Jan 6, 2024 · 0 comments · Fixed by #9
Closed

[Improvement] Load certificate and key at startup #7

rosahaj opened this issue Jan 6, 2024 · 0 comments · Fixed by #9

Comments

@rosahaj
Copy link

rosahaj commented Jan 6, 2024

At the moment the certificate and key seem to be loaded from the disk every time a new connection is made:

cert, err := tls.LoadX509KeyPair(Config.Cert, Config.Key)

It would be more efficient to load them once at startup and keep them in memory, since users probably don't expect the proxy to recognize file changes while running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant