expressjs / domain-middleware

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cleanly monitor worker.disconnect and server.close

Offirmo opened this issue · comments

instead of try/catching server.close and worker.disconnect, we could listen to their close and disconnect signal and abstain from repeating if already closed / shut.

More elegant I think.

PR pending.

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