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

DatagramSocketImpl.connect should throw SocketException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0, 1.4.1
    • core-libs
    • None
    • beta2
    • generic
    • generic, solaris_7


      1. DatagramSocketImpl.connect may fail to establish the
      destination address and there is no way to report this to
      the impl user (DatagramSocket.connect). This means that
      it isn't possible for DatagramSocket.connect(SocketAddress)
      to throw an exception when the connection cannot be
      established.

      2. Related to item 1 is that DatagramSocket.isConnected()
      may return true when in fact a default destination has not
      been established.

      3. As a consequence of 4204320 packet discarding is performed
      in the DatagramSocketImpl. If the impl user does not have a
      guarantee that the default destination has been establish
      the user of the impl is required to perform expensive
      checks on each packet returned by the impl. This check is
      required for security reasons. If however the impl is
      guaranteed to have established a default destination then
      duplicate destination checks are not required.

      alan.bateman@ireland 2001-04-04

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: