Skip to content
Myr

Fix ECONNRESET errors from res.sendFile usage

Before adoption: this commit came in with the history the project adopted, so no landing records it.

fixes #2571

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent dbc61fc · Browse files · 2 files+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−0 removed

  • other:+2 added−0 removed

2 files+2 added−0 removed

modified:lib/response.js+1 added
982 unmodified lines
983 }984985 // finished986 function onfinish(err) {987 if (err && err.code === 'ECONNRESET') return onaborted();988 if (err) return onerror(err);989 if (done) return;990991 setImmediate(function () {
39 unmodified lines
modified:History.md+1 added
1unreleased2==========34 * Fix constructing application with non-configurable prototype properties5 * Fix `ECONNRESET` errors from `res.sendFile` usage6 * Fix `req.host` when using "trust proxy" hops count7 * Fix `req.protocol`/`req.secure` when using "trust proxy" hops count8 * Fix wrong `code` on aborted connections from `res.sendFile`9 * deps: merge-descriptors@1.0.0
2703 unmodified lines