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 83d8ad3 commit eddf3a6Copy full SHA for eddf3a6
lib/internal/http2/core.js
@@ -1644,7 +1644,7 @@ class Http2Stream extends Duplex {
1644
req.async = false;
1645
const err = createWriteReq(req, handle, data, encoding);
1646
if (err)
1647
- throw util._errnoException(err, 'write', req.error);
+ return this.destroy(util._errnoException(err, 'write', req.error), cb);
1648
trackWriteState(this, req.bytes);
1649
}
1650
@@ -1687,7 +1687,7 @@ class Http2Stream extends Duplex {
1687
1688
const err = handle.writev(req, chunks);
1689
1690
1691
1692
1693
0 commit comments