Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The SSLSocketChannel class in nifi-security-utils obtains the remote address's hostname via a call to InetAddress.getHostName():
final Socket socket = socketChannel.socket(); this.hostname = socket.getInetAddress().getHostName();
This hostname is captured only for use in the message of Exceptions or logging and not programmatically. The use of this reverse DNS lookup, though, can be expensive and cause long delays in an environment where reverse DNS lookups are not available. As a result, we should use InetAddress.toString() instead, which will provide the hostname, if it is available, and the IP address without performing a reverse DNS lookup.
Attachments
Issue Links
- links to