We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac5f67 commit 7b850a7Copy full SHA for 7b850a7
lib/internal/http2/core.js
@@ -1646,7 +1646,7 @@ class Http2Stream extends Duplex {
1646
req.async = false;
1647
const err = createWriteReq(req, handle, data, encoding);
1648
if (err)
1649
- throw errors.errnoException(err, 'write', req.error);
+ return this.destroy(errors.errnoException(err, 'write', req.error), cb);
1650
trackWriteState(this, req.bytes);
1651
}
1652
@@ -1689,7 +1689,7 @@ class Http2Stream extends Duplex {
1689
1690
const err = handle.writev(req, chunks);
1691
1692
1693
1694
1695
0 commit comments