Skip to content

[v9.x] net: handle allowHalfOpen before calling super ctor

Rodrigo Muino Tomonari requested to merge github/fork/lpinca/gh-19764 into v9.x-staging

If the allowHalfOpen option is not provided, use its default value before calling the Duplex constructor. This allows the no-half-open enforcer to be properly added.

Fixes: https://github.com/nodejs/node/issues/19764

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading