We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a77d3fa commit 58a7fd0Copy full SHA for 58a7fd0
lib/internal/http2/core.js
@@ -1647,7 +1647,7 @@ class Http2Stream extends Duplex {
1647
req.async = false;
1648
const err = createWriteReq(req, handle, data, encoding);
1649
if (err)
1650
- throw util._errnoException(err, 'write', req.error);
+ return this.destroy(util._errnoException(err, 'write', req.error), cb);
1651
trackWriteState(this, req.bytes);
1652
}
1653
@@ -1690,7 +1690,7 @@ class Http2Stream extends Duplex {
1690
1691
const err = handle.writev(req, chunks);
1692
1693
1694
1695
1696
0 commit comments