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

Alan Bateman alanb at openjdk.org
Thu Feb 8 07:57:56 UTC 2024


On Wed, 31 Jan 2024 09:03:14 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: d1099033
Author:    Alan Bateman <alanb at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d1099033ac63b9dd0dd6e3a7341db929e9e0e56e
Stats:     84 lines in 2 files changed: 70 ins; 4 del; 10 mod

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

Reviewed-by: bpb

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

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


More information about the nio-dev mailing list