http2: fix compat stream read handling, add tests
This PR is mostly about fixing https://github.com/nodejs/node/issues/15491 but also includes some minor changes to improve overall reliability of the various stream events. Test cases for everything are included. (Some notes to follow directly in code.)
Thanks for reviewing!
cc @mcollina, @jasnell
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
http2, test