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

Fix initial lookup delay for client applications #24947

Merged
merged 1 commit into from
May 7, 2024

Conversation

kaido207
Copy link
Contributor

@kaido207 kaido207 commented May 7, 2024

There is a unnecessary calling inetSocketAddress.getHostName() in the method org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket().

The inetSocketAddress.getHostName() method performs a reverse DNS lookup from the inetSocketAddress.
It can take a long time to process depending on the environment, particularly when the corresponding host name cannot be found in DNS and times out.
For non-TLS connections, the reverse DNS lookup is not required.
However, inetSocketAddress.getHostName() is called regardless of the connection type in the current impl.

By applying this changes, the response is faster in some cases.
For example, using an IP address without a host name for (non-TLS) IIOP connections.

Signed-off-by: kaido207 <kaido.hiroki@fujitsu.com>
@arjantijms arjantijms added this to the 7.0.15 milestone May 7, 2024
@arjantijms arjantijms merged commit 1e14493 into eclipse-ee4j:master May 7, 2024
2 checks passed
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.

2 participants