Skip to content

Commit 267f66b

Browse files
vweeverstargos
authored andcommitted
doc: fix default of duplex.allowHalfOpen
PR-URL: #43665 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent 46ad206 commit 267f66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@ added: v0.9.4
22702270

22712271
If `false` then the stream will automatically end the writable side when the
22722272
readable side ends. Set initially by the `allowHalfOpen` constructor option,
2273-
which defaults to `false`.
2273+
which defaults to `true`.
22742274

22752275
This can be changed manually to change the half-open behavior of an existing
22762276
`Duplex` stream instance, but must be changed before the `'end'` event is

0 commit comments

Comments
 (0)