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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 19
    • Affects Version/s: 19
    • Component/s: core-libs
    • b12

      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);

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

              Created:
              Updated:
              Resolved: