Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8098533

java.net.ConnectException: Connection timed out should include the remote ip

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u45
    • core-libs
    • x86
    • linux_redhat_6.0

      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

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: