http2: fix GC issue & typos
There are two commits here:
-
It's hypothetically (and with certain V8 flags) possible for the session to be garbage collected before all the streams are. In that case, trying to remove the stream from the session will lead to a SEGFAULT due to attempting to access no longer valid memory. Fix this by unsetting the session on any streams still around when destroying.
-
fix node_http2.cc comment typos
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines