expressjs / domain-middleware

`uncaughtException` middleware for connect, base on `domain` module.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

closing the server when not in cluster

Offirmo opened this issue · comments

For what I can see in the code, the current code won't attempt to close the server when not in a cluster.

This is questionable (though I can think of some debatable reasons)

Being in an undefined state should call for an immediate stop to serving potentially wrong requests.

PR pending.

Note : my fork https://github.com/Offirmo/domain-middleware has this issue solved.