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

Sockets can't be "half open"

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1, 1.1.5, 1.2.0
    • core-libs
    • None
    • generic, x86, sparc
    • generic, solaris_2.5.1, solaris_2.6

      There's no support for the "half open" modes of sockets, where one
      can write (but not read) or read (but not write).

      So for example, if you get the input stream of a socket and close()
      it, that closes the socket and the output stream. Similarly for the
      case of initially closing the output stream.

      The RFE is that since most "normal" sockets support the ability to
      close one side of the socket, but not the other (i.e. "normal" being
      "what you can do with the Berkeley C sockets API), so should Java
      sockets offer this feature.

      Lack of this functionality prevents certain kinds of application
      protocols from working. Specifically, ones which work to ensure
      delivery of all application data before terminating connections.

            ywangsunw Yingxian Wang (Inactive)
            dbrownelsunw David Brownell (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: