From 26cd4e2ae652445be6e70d91b4411356184487b6 Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Tue, 5 Jul 2022 20:44:07 +0200 Subject: [PATCH] doc: fix default of duplex.allowHalfOpen PR-URL: https://github.com/nodejs/node/pull/43665 Reviewed-By: Luigi Pinca Reviewed-By: Darshan Sen --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 56dde8cb77c681..f223e41cb580d9 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2223,7 +2223,7 @@ added: v0.9.4 If `false` then the stream will automatically end the writable side when the readable side ends. Set initially by the `allowHalfOpen` constructor option, -which defaults to `false`. +which defaults to `true`. This can be changed manually to change the half-open behavior of an existing `Duplex` stream instance, but must be changed before the `'end'` event is