[Backgroundrb-devel] Advanced Rails Recipe 43 doesn't work, can't figure a work around

Derrek Long derrek at ridecharge.com
Mon Jul 21 10:49:31 EDT 2008


> I have a fix for Linux for the above mentioned problem, looking for a
>fix for OS X though. Basically, it boils down to "read_nonblock()"
>doesn't behave in OS X, as it should. In OSX, read_nonblock ,
>*blocks*, hence we had to switch to recv_nonblock(), which doesn't
>block in both Linux and OS X. But recv_nonblock is a something of a
>beast and doesn't work well for newly created sockets.

I pulled from git this morning and just spent another 20 minutes but couldn't get anything but the Packet::InvalidWorker error.  Is there any example of working code I can look at that accesses the backgroundrb cache?

My system is Ubuntu 7.10, rails 2.1, and ruby 1.8.6.

Thanks,
-Derrek


More information about the Backgroundrb-devel mailing list