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

(dc) DatagramChannel.send not throwing PortUnreachableException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 6u6
    • core-libs
    • None
    • generic
    • generic

      JDK Datagram APIs, for e.g connect is not throwing exception if port is unreachable.

      Sun GlassFish Communications Server is facing issue where its failover functionality is not working due to the fact that
      Datagram connect doesn't throw exception in case i/p and/or port are not reachable.

      we need to get some sort of exception or some indication that port specified is unreachable.

      attached sample program, we expect the test program to throw IOException but its not.

      please investigate and provide some solution as early as possible.

      what is expected jdk will get ICMP packets for destination unreachable,catch those packets and throw IOException on connect and send.

      please contact me for any more details
      gajanan. extn: 27620 (IEC).

            alanb Alan Bateman
            gajakulk Gajanan Kulkarni (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: