Skip to content

Commit c49ce80

Browse files
committed
fix: reject Promise on aborted and frameError events
1 parent 05f0ca1 commit c49ce80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/node-http-handler/src/node-http2-handler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ export class NodeHttp2Handler
6565
});
6666

6767
req.on("error", reject);
68+
req.on("frameError", reject);
69+
req.on("aborted", reject);
6870

6971
const { connectionTimeout } = this.httpOptions;
7072
if (connectionTimeout) {

0 commit comments

Comments
 (0)