Changeset 8488
- Timestamp:
- 12/27/07 11:17:05 (2 years ago)
- Files:
-
- trunk/actionpack/lib/action_controller/dispatcher.rb (modified) (2 diffs)
- trunk/railties/CHANGELOG (modified) (1 diff)
- trunk/railties/lib/commands/server.rb (modified) (2 diffs)
- trunk/railties/lib/commands/servers/new_mongrel.rb (added)
- trunk/railties/lib/rails/mongrel_server (added)
- trunk/railties/lib/rails/mongrel_server/commands.rb (added)
- trunk/railties/lib/rails/mongrel_server/handler.rb (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/dispatcher.rb
r8346 r8488 3 3 # reloading the app after each request when Dependencies.load? is true. 4 4 class Dispatcher 5 @@guard = Mutex.new 6 5 7 class << self 6 8 # Backward-compatible class method takes CGI-specific args. Deprecated … … 112 114 113 115 def dispatch 114 run_callbacks :before 115 handle_request 116 rescue Exception => exception 117 failsafe_rescue exception 118 ensure 119 run_callbacks :after, :reverse_each 116 @@guard.synchronize do 117 begin 118 run_callbacks :before 119 handle_request 120 rescue Exception => exception 121 failsafe_rescue exception 122 ensure 123 run_callbacks :after, :reverse_each 124 end 125 end 120 126 end 121 127 trunk/railties/CHANGELOG
r8435 r8488 1 1 *SVN* 2 3 * Introduce native mongrel handler and push mutex into dispatcher. [Jeremy Kemper] 2 4 3 5 * Ruby 1.9 compatibility. #1689, #10546 [Cheah Chu Yeow, frederico] trunk/railties/lib/commands/server.rb
r6344 r8488 19 19 else 20 20 if defined?(Mongrel) 21 "mongrel" 21 if Mongrel.respond_to?(:log) 22 "new_mongrel" 23 else 24 "mongrel" 25 end 22 26 elsif RUBY_PLATFORM !~ /(:?mswin|mingw)/ && !silence_stderr { `lighttpd -version` }.blank? && defined?(FCGI) 23 27 "lighttpd" … … 32 36 when "lighttpd" 33 37 puts "=> Booting lighttpd (use 'script/server webrick' to force WEBrick)" 34 when "mongrel" 38 when "mongrel", "new_mongrel" 35 39 puts "=> Booting Mongrel (use 'script/server webrick' to force WEBrick)" 36 40 end