Get chance and Rack
Rails 2.3でRackが統合されました
サーバー起動からリクエスト処理までの流れはこんな感じに(サーバー:mongrel)
RackでMutexロックしてます(threadsafe無効状態で)
Rails 2.3.2
- server.rb
- Rack::Handler::Mongrel#run
- Mongrel起動!
- Mongrel::HttpServer#process_client
- Rack::Hander::Mongrel#process
- ActionController::Dispatcher.dispatch
- ActionController::Base#process
- ActionController::Base#perform_action
Rails 2.2.2では
- server.rb
- Mongrel起動!
- Mongrel::HttpServer#process_client
- Mongrel::RailsHandler#process
- ActionController::Dispatcher.dispatch
- ActionController::Base#process
- ActionController::Base#perform_action