stream: add no-half-open enforcer only if needed
The listener does not do anything if allowHalfOpen
is enabled. Add it only when allowHalfOpen
is disabled.
If allowHalfOpen
can be changed on the fly this PR doesn't make sense and should be closed.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
stream