Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Don't try to send a reponse from the domain error handler. It's alway…

…s too late (and `res` is undefined).
  • Loading branch information...
commit 17306e3aebe4c72f1b62c1852abf8bb03000164f 1 parent 010c428
@danmactough danmactough authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 index.js
View
7 index.js
@@ -29,14 +29,9 @@ exports.attach = function (options) {
// 'disconnect' in the cluster master, and then it will fork
// a new worker.
cluster.worker.disconnect();
-
- // try to send an error to the request that triggered the problem
- res.writeHead(500, {'content-type': 'text/plain'});
- res.write('Internal server error. Please try again later.');
- res.end();
} catch (err2) {
// oh well, not much we can do at this point.
- console.error('Error sending 500!', err2.stack || err2);
+ console.error('Error closing server', err2.stack || err2);
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.