jruby/jruby-rack — pull request #103 by kares (2012-03-14 15:24:57+00:00)
Title: embedded RackConfig with out/err streams correctly setup

I'm looking for a review here, before I write a few specs for this piece of code.
Cause I'm still not sure I understand the essence of the *embed* package correctly.

This code started at sinatra/sinatra#479 and continued with sinatra/sinatra#482.

The first commit adds a `org.jruby.rack.embed.Config` to be used with embedded environments.

The second is all that makes the "final" test failure pass at sinatra/sinatra#482 with trinidad's updates at trinidad/trinidad#62. It essentially sets up parts of the rack config from the application runtime.

Now what confuses me is that RackConfig runtime related operations such as `getInitialRuntimes`, `getMaximumRuntimes` etc seem irrelevant since we're using the very same runtime here, but of course this collides with rack's **Threads=MIX:MAX** option trinidad configures https://github.com/trinidad/trinidad/blob/master/lib/rack/handler/trinidad.rb#L42-45