perplexes / m2r

Mongrel2 Connection Adapter - Ruby Encrusted Steel-Reinforced Fist
MIT License
90 stars 11 forks source link

Allow to stop Handler when waiting for a new request on ZMQ #49

Open paneq opened 12 years ago

paneq commented 12 years ago

Use poller and send ZMQ message to stop ? Send special kind of message to PULL socket used by underlying Connection ?

paneq commented 11 years ago

This is currently working when using signals for running application. However the additional usecase that I have in mind is that someone might be running a handler in separate thread. The handler is waiting for a request and we would like it to stop for some reasone. No signal was send.