domain-middleware
domain-middleware copied to clipboard
closing the server when not in cluster
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.