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 38bae5d commit 84afd6eCopy full SHA for 84afd6e
lib/internal/http2/core.js
@@ -1680,7 +1680,7 @@ class Http2Stream extends Duplex {
1680
req.async = false;
1681
const err = createWriteReq(req, handle, data, encoding);
1682
if (err)
1683
- throw errnoException(err, 'write', req.error);
+ return this.destroy(errnoException(err, 'write', req.error), cb);
1684
trackWriteState(this, req.bytes);
1685
}
1686
@@ -1723,7 +1723,7 @@ class Http2Stream extends Duplex {
1723
1724
const err = handle.writev(req, chunks);
1725
1726
1727
1728
1729
0 commit comments