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

(se) Pipe.open() creates a Pipe implementation that uses Unix domain sockets (win)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 19
    • Fix Version/s: 19
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      src/java.base/windows/classes/sun/nio/ch/PipeImpl.java

          /**
           * Creates a (TCP) Pipe implementation that supports buffering.
           */
          PipeImpl(SelectorProvider sp) throws IOException {
              this(sp, true, false);
          }

      The first boolean is `preferAfUnix` - the second one is `buffering` - so this actually creates a Unix Domain pipe with no buffering.

      Either the spec or the implementation should be fixed so that they both match.

      Note that the only place where this constructor is used seems to be here:

      src/java.base/share/classes/sun/nio/ch/SelectorProviderImpl.java: return new PipeImpl(this);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michaelm Michael McMahon
              Reporter:
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: