简体   繁体   中英

Issue with rails, websocket-rails, websocket, redis + websocket-rails

I am using redis , sidekiq gem in one of my project and later added websocket-rails gem. After that I am having issue something like this:

/synchrony.rb:114:in `resume': double resume (FiberError)
from .rvm/gems/ruby-1.9.3-p194/bundler/gems/redis-rb-e9e17d65b9c5/lib/redis/connection/synchrony.rb:114:in `block in setup_connect_callbacks'

Need help

Use ruby driver instead of synchrony driver for redis. I have forked this project, you can find it here https://github.com/Bivek/websocket-rails and look into latest commit.

you can refernce this documents. http://ruby-doc.org/core-2.0.0/Fiber.html#method-i-alive-3F in my case error was occured like this. /usr/local/rvm/gems/ruby-2.0.0-p247/gems/redis-3.0.4/lib/redis/connection/synchrony.rb:78:in `resume': double resume (FiberError)

so i add

if !fiber.alive? end

block

thank you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM