Skip to content
This repository
Browse code

Use Thin instead of Mongrel

Mongrel is deprecated.
  • Loading branch information...
commit b487f02b13f42c5933aa42193ed4e1c0b90382d7 1 parent 2f06008
Tsutomu Kuroda authored December 27, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/rack/handler.rb
4  lib/rack/handler.rb
... ...
@@ -1,7 +1,7 @@
1 1
 module Rack
2 2
   # *Handlers* connect web servers with Rack.
3 3
   #
4  
-  # Rack includes Handlers for Mongrel, WEBrick, FastCGI, CGI, SCGI
  4
+  # Rack includes Handlers for Thin, WEBrick, FastCGI, CGI, SCGI
5 5
   # and LiteSpeed.
6 6
   #
7 7
   # Handlers usually are activated by calling <tt>MyHandler.run(myapp)</tt>.
@@ -38,7 +38,7 @@ def self.default(options = {})
38 38
         Rack::Handler::CGI
39 39
       else
40 40
         begin
41  
-          Rack::Handler::Mongrel
  41
+          Rack::Handler::Thin
42 42
         rescue LoadError
43 43
           Rack::Handler::WEBrick
44 44
         end

2 notes on commit b487f02

Tsutomu Kuroda

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 https://github.com/evan/mongrel

James Tucker
Owner

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.
Something went wrong with that request. Please try again.