A DESCRIPTION OF THE REQUEST :
The exception messages related to networking should include the address that was being attempted to be connected to.
Please use the IP address, and not the DNS name (if one was used).
JUSTIFICATION :
This would simplify diagnosing problems.
Currently, there is no way to know what IP was being attempted to be connected to at the time of the message.
In these days of changing infrastructure addresses (cloud, etc), and DNS caching in various places, it makes it hard to know what was being connected to.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
java.net.ConnectException: Connecting to 1.2.3.4 timed out.
or
java.net.ConnectException: Connecting to 2001:555:666::1 timed out.
ACTUAL -
java.net.ConnectException: Connection timed out
The exception messages related to networking should include the address that was being attempted to be connected to.
Please use the IP address, and not the DNS name (if one was used).
JUSTIFICATION :
This would simplify diagnosing problems.
Currently, there is no way to know what IP was being attempted to be connected to at the time of the message.
In these days of changing infrastructure addresses (cloud, etc), and DNS caching in various places, it makes it hard to know what was being connected to.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
java.net.ConnectException: Connecting to 1.2.3.4 timed out.
or
java.net.ConnectException: Connecting to 2001:555:666::1 timed out.
ACTUAL -
java.net.ConnectException: Connection timed out
- duplicates
-
JDK-8204233 Add configurable option for enhanced socket IOException messages
-
- Closed
-