[Backgroundrb-devel] Fwd: Method hangs for the first time if called synchronously
maze at strahlungsfrei.de
Thu Jul 17 08:31:57 EDT 2008
I just installed Backgroundrb (SVN via piston, Packet gem 0.1.7) in my Rails
2.1 project. As far as I can tell, I am experiencing exactly the same problem.
On Linux, that is (Ubuntu 8.04, Kernel 2.6.22-14-xen)!
The first asynchronous worker calls (in console) worked. Then, after restarting
Backgroundrb and the console, Every synchronous call hangs at the same
position as told by Jonathan. Asynchronous calls then have no effect either.
Hemant, I tried your patch, but it doesn't change anything for me. I will do
anything to help ;-/
On Wednesday 16 July 2008 20:35:50 Jonathan Wallace wrote:
> It didn't fix it for me.
> On Wed, Jul 16, 2008 at 2:23 PM, hemant <gethemant at gmail.com> wrote:
> > On Wed, Jul 16, 2008 at 2:11 AM, Csongor Gyuricza <csgyuricza at gmail.com>
> >> I forgot to mention that this is on a Mac.
> >> Unfortunately I don't have a linux box easily available, I'd have to
> >> setup one. I won't be able to do it today, I can do it in a couple of
> >> days unless someone else does it before.
> > Can you try following fix in packet and report if this fixes your issue:
> > --- a/lib/packet/packet_nbio.rb
> > +++ b/lib/packet/packet_nbio.rb
> > @@ -13,8 +13,8 @@ module Packet
> > def read_data(t_sock)
> > sock_data = 
> > begin
> > - while(t_data = t_sock.read_nonblock((16*1024)-1))
> > - #raise DisconnectError.new(t_sock,sock_data.join) if
> > t_data.empty? + while(t_data = t_sock.recv_nonblock((16*1024)-1))
> > + raise DisconnectError.new(t_sock,sock_data.join) if
> > t_data.empty? sock_data << t_data
> > end
> > rescue Errno::EAGAIN
> > Unfortunately, I don't have Mac OSX, for testing and hence the problem.
> > Thanks for your patience.
> > --
> > Let them talk of their oriental summer climes of everlasting
> > conservatories; give me the privilege of making my own summer with my
> > own coals.
> > http://gnufied.org
> > _______________________________________________
> > Backgroundrb-devel mailing list
> > Backgroundrb-devel at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/backgroundrb-devel
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
More information about the Backgroundrb-devel