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

Unnecessary delay in resolving socket address in ZitiConnectionSocketFactory #561

Closed
ahazeltonNF opened this issue Mar 12, 2024 · 0 comments

Comments

@ahazeltonNF
Copy link
Contributor

In the ZitiConnectionSocketFactory class as part of the ziti-springboot-client, the connectSocket method creates an InetSocketAddress from the provided host parameter's hostName and port attributes. This causes a potential delay while the InetSocketAddress class attempts to resolve the provided name and port to a resolved address.

This is unnecessary since Ziti only uses the hostName and port when resolving the service for the connection.

Instead, the ZitiConnectionSocketFactory should use the InetSocketAddress.createUnresolved method to avoid the lookup delay.

ahazeltonNF added a commit to ahazeltonNF/ziti-sdk-jvm that referenced this issue Mar 12, 2024
@ekoby ekoby closed this as completed in 1c072f4 Mar 13, 2024
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

No branches or pull requests

1 participant