http2: fix sequence of error/close events · nodejs/node@4c24a82 · GitHub
Skip to content

Commit 4c24a82

Browse files
FlarnaBethGriggs
authored andcommitted
http2: fix sequence of error/close events
Correct sequence of emitting `error` and `close` events for a `Http2Stream`. PR-URL: #24789 Refs: #22850 Refs: #24685 Fixes: #24559 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 394cb42 commit 4c24a82

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

lib/internal/http2/core.js

Lines changed: 1 addition & 2 deletions

test/parallel/test-http2-stream-destroy-event-order.js

Lines changed: 4 additions & 5 deletions

0 commit comments

Comments
 (0)