From 267f66b5cca2312d38bd84a470809768299df5d7 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 4480eaff0db193..3dfe70845c7600 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2270,7 +2270,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