khiltd/khi-rack-mongrel2 — pull request #1 by martinrehfeld (2012-03-01 16:35:28+00:00)
Title: Some tweaks for clean process termination

Hi there,

do you happen to still use the rack-mongrel2 stuff?

If so, I would like to get these additions included upstream.
My use case is to self-terminate the Ruby process from within the custom app in a clean way, but still sent a last reply. To make sure that no messages get lost in this case, I have to close the sockets and context and also set ZMQ::LINGER to non-zero -- so I made it configurable.

If you would generally be willing to pull, I am also open to adapt the style of the changes to suit your taste :)

Cheers,
Martin