Rack :: MockRequest响应"死锁;递归锁定"

时间:2015-01-06 19:45:02

标签: ruby-on-rails ruby rack

我正在尝试两次调用MockRequest来检查附加的机架应用程序是否存在URL。它第一次工作正常,但每个其他请求显示“死锁;递归锁定”响应。该调用将在onKeyUp上检查我们的系统中是否存在用户名,因此任何类型的延迟都不适用于我们。

在运行呼叫之后我们是否缺少清除线程的命令?

Ruby 2.2,Rails 4.1。

> Boulder::Application.call(Rack::MockRequest.env_for('https://brandfolder.com/start'))[0]
Started GET "/start" for  at 2015-01-06 12:36:29 -0700
=> 200

> Boulder::Application.call(Rack::MockRequest.env_for('https://brandfolder.com/start'))[0]
ThreadError: deadlock; recursive locking from /Users/Paul/.rvm/gems/ruby-2.2.0/gems/rack-1.5.2/lib/rack/lock.rb:16:in 'lock'

> Boulder::Application.call(Rack::MockRequest.env_for('https://brandfolder.com/start'))[0]
Started GET "/start" for  at 2015-01-06 12:36:29 -0700
=> 200

> Boulder::Application.call(Rack::MockRequest.env_for('https://brandfolder.com/start'))[0]
ThreadError: deadlock; recursive locking from /Users/Paul/.rvm/gems/ruby-2.2.0/gems/rack-1.5.2/lib/rack/lock.rb:16:in 'lock'

0 个答案:

没有答案