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

refactor: abstract security layer upgrades #2749

Closed
wants to merge 6 commits into from
Closed

refactor: abstract security layer upgrades #2749

wants to merge 6 commits into from

Conversation

hax0r31337
Copy link
Contributor

Security layer has been abstracted to reduce code duplication, and improves maintainability when adding new security layer protocol in the future.

I also have a proposal to refactor TransportDialer to interface instead of function, which can improve performance.

@hax0r31337 hax0r31337 marked this pull request as draft November 22, 2023 09:37
@wyx2685
Copy link
Contributor

wyx2685 commented Nov 22, 2023

@hax0r31337 支持性能优化👍

@hax0r31337 hax0r31337 marked this pull request as ready for review November 22, 2023 13:38
}
}

func (c *grpcUtls) ClientHandshake(ctx context.Context, authority string, rawConn net.Conn) (_ net.Conn, _ credentials.AuthInfo, err error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this just a refactor or change logic? Why is this removed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the previous concern is not addressed

transport/internet/websocket/dialer.go Outdated Show resolved Hide resolved
@hax0r31337 hax0r31337 closed this Dec 7, 2023
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 this pull request may close these issues.

3 participants