RFR: 8325028: (ch) Pipe channels should lazily set socket to non-blocking mode on first use by virtual thread

Alan Bateman alanb at openjdk.org
Wed Feb 7 11:45:04 UTC 2024


The Unix implementation of the Pipe source/sink channels eagerly configures the underlying socket to be non-blocking in case the pipe is used by a virtual thread. It can be done lazily, as done with the network channels. No changes to the semantics of the APIs, and well tested by the existing tests.

-------------

Commit messages:
 - Update copyright dates
 - Merge
 - Initial commit

Changes: https://git.openjdk.org/jdk/pull/17648/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17648&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8325028
  Stats: 84 lines in 2 files changed: 70 ins; 4 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/17648.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17648/head:pull/17648

PR: https://git.openjdk.org/jdk/pull/17648


More information about the nio-dev mailing list