perplexes/m2r — pull request #5 by paneq (2012-07-12 21:20:20+00:00)
Title: Allow to reuse/set ZMQ context used by Mongrel2

As stated in: http://zguide.zeromq.org/page:all#Getting-the-Context-Right : "You should create and use exactly one context in your process"

Sometimes the programmer might want to create the Context itself and let
the handler use it. It can be done in two ways:

a) setting `Mongrel2.zmq_context`
b) providing it as a dependency when creating new Connection:

```ruby
Mongrel2::Connection.new(sender_id, pull_addr, pub_addr, context)
```

But most people do not have such needs so by default we create our own
context with 1 thread for IO.