Browse files

Use Thin instead of Mongrel

Mongrel is deprecated.
  • Loading branch information...
1 parent 2f06008 commit b487f02b13f42c5933aa42193ed4e1c0b90382d7 @kuroda kuroda committed Dec 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rack/handler.rb
@@ -1,7 +1,7 @@
module Rack
# *Handlers* connect web servers with Rack.
- # Rack includes Handlers for Mongrel, WEBrick, FastCGI, CGI, SCGI
+ # Rack includes Handlers for Thin, WEBrick, FastCGI, CGI, SCGI
# and LiteSpeed.
# Handlers usually are activated by calling <tt></tt>.
@@ -38,7 +38,7 @@ def self.default(options = {})
- Rack::Handler::Mongrel
+ Rack::Handler::Thin
rescue LoadError

2 comments on commit b487f02


kuroda replied Dec 27, 2011

This is a temporary measure to provide users a way to suppress annoying warning messages that WEBrick emits:

WARN  Could not determine content-length of response body.
Set content-length of the response or set Response#chunked = true

This message is issued when we use WEBrick on Ruby 1.9. You can suppress it if you put gem "thin" into your Gemfile.

Note that Mongrel is declared as deprecated on its Github page. See


raggi replied Dec 28, 2011

This actually needs to get submitted back to ruby-core. They shouldn't emit this message if the response header Transfer-Encoding is set to 'chunked'.

I think that variable being set like that on response is kinda silly actually.

Please sign in to comment.