Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

One of several Mongrel2/Rack handlers you're liable to try.

tag: 1.0.2

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 example
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 khi-rack-mongrel2.gemspec
README.md

khi-rack-mongrel2

The rack-mongrel2 gem was supposed to be "the only Mongrel2 Rack handler you'll ever need." Unfortunately, its original author hasn't done a lot of work with Mongrel2 or ØMQ, so parts of it made assumptions which just didn't work in actual production environments. He also seems to be pretty lazy about fixing obvious bugs which make the gem flat out unusable, and I've got work to do, so here's a fork.

What's so Great About Yours?

  1. Reads are non-blocking.

  2. I don't care about any of that Ruby hippie FFI shit. I use the standard-issue hand-compiled zmq gem and I like it. If you can't build it on your OS, you probably shouldn't be serving web pages from it.

  3. I don't ever supply any default ØMQ connection specs since there is virtually NO chance that you will ever setup your Mongrel2 instance the same way I setup mine. Especially not if you're running more than one of them and can't keep recycling the same ports for every app you intend to boot. This does make the setup code look more like actual code than magic unicorn farts, so seeing it will probably drive some angry Rails teen to sperg out in a Peet's bathroom for a week while chanting "D.R.Y." and jerking off to the Kid Robot catalog he carries around in the $300 hardshell backpack his mom bought him to protect his Hario ceramic burr grinder from the mean streets of SoMa. I consider this my fork's greatest feature.

  4. I fixed a really stupid longstanding crasher that's been unaddressed for months which was hindering my team's progress.

  5. It can actually be found by gem which.

Sounds Cool. Gimme.

Add http://gem.khiltd.com to your gem sources--either via gem source --add or by throwing it in your Gemfile. Then just gem install khi-rack-mongrel2 or bundle install and get rid of any potentially conflicting versions you might have been using previously.

You Sound Like a Real Jerk

So don't give me one of your Zazzle cards.

Copyright

Original project Copyright © 2010 Daniel Huckstep. See LICENSE for details.

This divergent, derivative work Copyright © 2011 KHI Ltd. Co., LLC.

Something went wrong with that request. Please try again.