Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dispose domain on response finish event

  • Loading branch information...
commit 1c2b75fec1d87dd39f52f1f441e039d5037dacde 1 parent 9066460
@baryshev authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/connect-domain.js
View
4 lib/connect-domain.js
@@ -8,6 +8,10 @@ module.exports = function () {
reqDomain.dispose();
});
+ res.on('finish', function () {
@fengmk2
fengmk2 added a note

This will let connect.static middleware broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ reqDomain.dispose();
+ });
+
reqDomain.on('error', function (err) {
// Once a domain is disposed, further errors from the emitters in that set will be ignored.
reqDomain.dispose();
Please sign in to comment.
Something went wrong with that request. Please try again.