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

martian: move TLS handshake from Listener to matrtian #917

Closed
mmatczuk opened this issue Sep 20, 2024 · 0 comments · Fixed by #941
Closed

martian: move TLS handshake from Listener to matrtian #917

mmatczuk opened this issue Sep 20, 2024 · 0 comments · Fixed by #941
Assignees
Milestone

Comments

@mmatczuk
Copy link
Contributor

mmatczuk commented Sep 20, 2024

The forwarder.Listener preforms explicit TLS handshake if TLS is configured.
While it's beneficial to martian to the handshake before trying to read request,
it may lead to slowness in accepting new connections as the handshake is performed in proxy main loop.

Move TLS handshake out of Listener and move it to martian and make it in separate go routine.

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.

2 participants