http2: fix missing 'timeout' event emit in request and response
A timeout in a http2 stream should emit a 'timeout' event also on request and response object. If there is no listener on stream, request or response, stream should immediately be destroyed.
Fixes: https://github.com/nodejs/node/issues/20079
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