http2: fix FileHandle leak in respondWithFile · nodejs/node@2fdb5ce · GitHub
Skip to content

Commit 2fdb5ce

Browse files
Han5991marco-ippolito
authored andcommitted
http2: fix FileHandle leak in respondWithFile
Ensure that the file handle is closed if header validation fails in respondWithFile. This prevents ERR_INVALID_STATE errors where a FileHandle object is closed during garbage collection. PR-URL: #61707 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com>
1 parent e4c0d99 commit 2fdb5ce

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

lib/internal/http2/core.js

Lines changed: 4 additions & 0 deletions
Lines changed: 51 additions & 0 deletions

0 commit comments

Comments
 (0)