I'm currently trying to use http://ruby-doc.org/core/classes/Mutex.html
to synchronize the client methods, but I still get the same errors.
I just created a global variable $semaphore and call everything
withing a $semaphore.syncrhonize{...}.



On Jun 4, 9:35 pm, Keith Rarick <[email protected]> wrote:
> On Fri, Jun 4, 2010 at 2:27 AM, Marc Seeger <[email protected]> wrote:
> > Any idea what that's about?
> > Isn't the client multi-thread capable?
>
> The ruby client does no synchronization, you have to do that yourself.
> If your correctly synchronize your access to the client methods, then
> it will work fine with multiple threads.
>
> Things like UnexpectedResponse are most likely due to one thread
> reading a response intended for another thread.
>
> kr

-- 
You received this message because you are subscribed to the Google Groups 
"beanstalk-talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/beanstalk-talk?hl=en.

Reply via email to