Skip to content

Commit

Permalink
doc: fix default of duplex.allowHalfOpen
Browse files Browse the repository at this point in the history
PR-URL: #43665
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
vweevers authored and targos committed Jul 12, 2022
1 parent 46ad206 commit 267f66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 267f66b

Please sign in to comment.