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

    • Bug
    • Resolution: Fixed
    • P3
    • 19
    • 19
    • core-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: