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

Wanted: equivalent of C shutdown(2) call on socket

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs
    • x86
    • windows_nt



      Name: dbT83986 Date: 03/02/99


      I'd like to be able to close a TCP connection in one direction
      only. It would be logical if doing something like

        Socket s;
        ...
        s.getOutputStream().close();

      would have this effect but in fact that causes the whole socket
      to get closed. In C one can call shutdown(2) which closes one
      direction only, i.e. the peer will know (or can know) that the
      socket is closed in one direction but data can still flow the
      other way.
      (Review ID: 54956)
      ======================================================================

            Unassigned Unassigned
            dblairsunw Dave Blair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: