We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
domain
1 parent 9d8b371 commit 12a7d53Copy full SHA for 12a7d53
lib/middleware/connect.js
@@ -27,6 +27,7 @@ connectMiddleware.errorHandler = function(client) {
27
// Ensures asynchronous exceptions are routed to the errorHandler. This
28
// should be the **first** item listed in middleware.
29
connectMiddleware.requestHandler = function(client) {
30
+ var domain = require('domain');
31
return function(req, res, next) {
32
var reqDomain = domain.create();
33
reqDomain.on('error', next);
0 commit comments