m2r
m2r copied to clipboard
Mongrel2 Connection Adapter - Ruby Encrusted Steel-Reinforced Fist
- It will take app, connection_factory, parser and single-thread handler such as `M2R::Handler` or `M2R::RackHandler` for constructor arguments - `#listen` will spawn few threads with single-thread handlers running inside of...
We should avoid mistakes taken by other similar gems and do it the zmq way meaning that every thread has its own connection to/from mongrel2. We should avoid master-workers architecture...
## Idea: Allow to easily deliver notifications to clients from Rails/Rack apps using SSE. ### Algorithm: #### Subscription From Rails/Rack application respond with `Transfer-Encoding: chunked` header for the request. Verify...
http://dak1n1.com/blog/14-http-load-generate
Use `poller` and send `ZMQ` message to stop ? Send special kind of message to PULL socket used by underlying `Connection` ?
For: - graceful stop - force stop - adding a thread - removing a thread - reloading configuration (if possible...) Signal handling should be defined in our `m2r` binary instead...
@perplexes @pawelpacana Please configure hooks for http://documentup.com/perplexes/m2r and http://rdoc.info/github/perplexes/m2r
https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-core/j5F0LchIaX8 It is problematic for some servers and probably does not work correctly right now ``` ruby buffer = "" body.each { |part| buffer
_rolling "zero-downtime" (asynchronous) reloading strategy similar to Passenger's rolling reloads. This has been the default since 1.1.0 up till the 1.3.x line. If you use this you should account that...