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

InetAddress.isReachable(timeout) reports reachable if I pull network cable out

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      See BUG 5067312 which has been closed !
      I use jdk 1.5_0_5 and have the same problem.
      When i try to test ICMP using isRechable() everything works fine. If i pull my LAN-Connector, the isRechable()-Method still says that the host is reachable. But I expect the following: When the LAN cable is pulled, isReachable() should not return true.
      I use java5 and i have to test several devices by ICMP, therefore the bugfree implementation of isReachable is very important.
      Stepping the whole project to mustang isnt the right way, the development of version 6 isnt right completed.

      JUSTIFICATION :
      We develop a netmanagementsystem, therefore we have to check several devices for their icmp-Reachability. But Mustang is to early in its development to switch the whole project to this version.
      The isRechableMethod is the only way to check ICMP via java.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      When the LAN cable is pulled, isReachable() should not return true
      ACTUAL -
      I pull the LAN cable and my to be checked device is still reachable.

      ---------- BEGIN SOURCE ----------
      see bug 5067312
      ---------- END SOURCE ----------

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: