99.99% you are using the same Redis object across different threads.
But I bet the Redis-rb hackers listening in this list will be able to
provide some better help :)
Cheers,
Salvatore
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>
--
Salvatore 'antirez' Sanfilippo
http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele
Cheers,
Pieter
Cheers,
Salvatore
Exactly, as Salvatore and Pieter explained, you're sharing a file
descriptor between processes.
There's not much we can do about it except from better documentation.
So we included a very simple example of how to use the Ruby client
with Unicorn: http://github.com/ezmobius/redis-rb/commit/036f0eafcc67df3d4b31c489f42a6f386cc79a27
Also expanded the message for the exception so that it's more useful:
http://github.com/ezmobius/redis-rb/commit/70454014711581682f4235711bc8effe484af45b
Hope that helps.
The same as Unicorn applies to Passenger. You need reconnect after forking.
Details on usage under Passenger:
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry