net,http2: refactor _write and _writev in net.Socket and http2.Http2Stream
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
Roadmap
-
Remove inconsistencies between http2.Http2Stream._write
andhttp2.Http2Stream._writev
-
Move all logic into a new method http2.Http2Stream._writeGeneric
-
Remove inconsistencies between net.Socket._writeGeneric
andhttp2.Http2Stream._writeGeneric
-
Refactor common logic into a method in the base class/method, possibly writeGeneric
frominternal/stream_base_commons
.
/cc @addaleax @nodejs/http2 @nodejs/net