Is it/should it be one of the design goals of up to add a new worker to the pool if one dies unexpectedly?
A contrived example, but a server like the following can only survive N requests, where N is the initial number of spawned workers.
// server.js
function hdlr (request, response) {
response.end(''+Math.random());
process.nextTick(function () { crash(); })
}
module.exports = require('http').createServer(hdlr);
I think it'd be great if up could ensure that it never gets to a point where there are zero active workers. I've been experimenting with using up in a semi-production environment and I've been burnt by this before, but I wanted to make sure this wasn't a WONTFIX type of issue before putting any time into patching it.