about summary refs log tree commit homepage
path: root/lib/mongrel/rails.rb
diff options
context:
space:
mode:
authorzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-09-22 08:16:54 +0000
committerzedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9>2006-09-22 08:16:54 +0000
commite1d423ab4d835b8eea4e42444cc189bcdf79ec95 (patch)
treeaaf05aed8a91fe5b6a3bb23b00e03c97bd281bcd /lib/mongrel/rails.rb
parent5f0c661e6a08793180e9b4414da4b197b33b0c78 (diff)
downloadunicorn-e1d423ab4d835b8eea4e42444cc189bcdf79ec95.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@349 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel/rails.rb')
-rw-r--r--lib/mongrel/rails.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mongrel/rails.rb b/lib/mongrel/rails.rb
index ca430d5..e351cec 100644
--- a/lib/mongrel/rails.rb
+++ b/lib/mongrel/rails.rb
@@ -78,10 +78,12 @@ module Mongrel
             # we don't want the output to be really final until we're out of the lock
             cgi.default_really_final = false
 
-            log_threads_waiting_for(request.params["PATH_INFO"]) if $mongrel_debug_client
+            log_threads_waiting_for(request.params["PATH_INFO"] || @active_request_path) if $mongrel_debug_client
 
             @guard.synchronize(:EX) {
+              @active_request_path = request.params["PATH_INFO"]
               Dispatcher.dispatch(cgi, ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS, response.body)
+              @active_request_path = nil
             }
 
             # This finalizes the output using the proper HttpResponse way