about summary refs log tree commit homepage
path: root/lib/mongrel.rb
diff options
context:
space:
mode:
authorbricolage <bricolage@19e92222-5c0b-0410-8929-a290d50e31e9>2006-09-26 21:25:44 +0000
committerbricolage <bricolage@19e92222-5c0b-0410-8929-a290d50e31e9>2006-09-26 21:25:44 +0000
commit89c3e98c96589fda499bfa389aff6b9ec0d9da8e (patch)
tree9673be8882d3c23ad6862e5ba77cb2fa341bdcbe /lib/mongrel.rb
parentbd5e6347889e1ac07256228935f6d4a73c872f64 (diff)
downloadunicorn-89c3e98c96589fda499bfa389aff6b9ec0d9da8e.tar.gz
* Improve messaging for config file generation
* Remove unnecessary local var for config_file merging in mongrel_rails
* Add Iowa to list of supported frameworks in gem spec

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@353 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel.rb')
-rw-r--r--lib/mongrel.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/mongrel.rb b/lib/mongrel.rb
index 07729fc..57cfb6a 100644
--- a/lib/mongrel.rb
+++ b/lib/mongrel.rb
@@ -47,6 +47,7 @@ module Mongrel
   # Used to stop the HttpServer via Thread.raise.
   class StopServer < Exception; end
 
+
   # Thrown at a thread when it is timed out.
   class TimeoutError < Exception; end
 
@@ -95,7 +96,6 @@ module Mongrel
   }
 
 
-
   # Frequently used constants when constructing requests or responses.  Many times
   # the constant just refers to a string with the same contents.  Using these constants
   # gave about a 3% to 10% performance improvement over using the strings directly.
@@ -160,11 +160,13 @@ module Mongrel
     REDIRECT = "HTTP/1.1 302 Found\r\nLocation: %s\r\nConnection: close\r\n\r\n".freeze
   end
 
+
   # Basically a Hash with one extra parameter for the HTTP body, mostly used internally.
   class HttpParams < Hash
     attr_accessor :http_body
   end
 
+
   # When a handler is found for a registered URI then this class is constructed
   # and passed to your HttpHandler::process method.  You should assume that
   # *one* handler processes all requests.  Included in the HttpRequest is a
@@ -324,6 +326,7 @@ module Mongrel
     end
   end
 
+
   # Writes and controls your response to the client using the HTTP/1.1 specification.
   # You use it by simply doing:
   #
@@ -484,6 +487,7 @@ module Mongrel
 
   end
 
+
   # This is the main driver of Mongrel, while the Mongrel::HttpParser and Mongrel::URIClassifier
   # make up the majority of how the server functions.  It's a very simple class that just
   # has a thread accepting connections and a simple HttpServer.process_client function
@@ -537,7 +541,6 @@ module Mongrel
       @death_time = 60
     end
 
-
     # Does the majority of the IO processing.  It has been written in Ruby using
     # about 7 different IO processing strategies and no matter how it's done
     # the performance just does not improve.  It is currently carefully constructed
@@ -704,14 +707,12 @@ module Mongrel
             STDERR.puts $!.backtrace.join("\n") if $mongrel_debug_client
           end
         end
-
         graceful_shutdown
       end
 
       return @acceptor
     end
 
-
     # Simply registers a handler with the internal URIClassifier.  When the URI is
     # found in the prefix of a request then your handler's HttpHandler::process method
     # is called.  See Mongrel::URIClassifier#register for more information.