eval/rack-pjax — Issue #2: Deadlock in Rails 3.1
Author: dpmccabe
Created: 2011-11-02 16:43:07+00:00
State: open

I had rack-pjax working in a Rails 3.0.7, but upon updated to Rails 3.1.1, I'm getting a deadlock error from Rack every few requests:

```[2011-11-02 11:36:45] ERROR ThreadError: deadlock; recursive locking
/Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/gems/rack-1.3.5/lib/rack/lock.rb:14:in `lock'
/Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/gems/rack-1.3.5/lib/rack/lock.rb:14:in `call'
/Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/gems/actionpack-3.1.1/lib/action_dispatch/middleware/static.rb:53:in `call'
/Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/gems/railties-3.1.1/lib/rails/engine.rb:456:in `call'
/Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/bundler/gems/rack-pjax-4256ddc68de6/lib/rack/pjax.rb:12:in `call'
/Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/gems/railties-3.1.1/lib/rails/rack/content_length.rb:16:in `call'
/Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/gems/railties-3.1.1/lib/rails/rack/log_tailer.rb:14:in `call'
/Users/Devin/.rvm/gems/ruby-1.9.2-p180@rails31/gems/rack-1.3.5/lib/rack/handler/webrick.rb:59:in `service'
/Users/Devin/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/Devin/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/Devin/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
^C[2011-11-02 11:36:52] INFO going to shutdown ...
```