[Backgroundrb-devel] Connection to backgroundrb is lost when exiting action method

Ezra Zygmuntowicz ezmobius at gmail.com
Sat Sep 23 23:57:09 EDT 2006

Hey Omer-

On Sep 23, 2006, at 11:03 AM, Omer Enbar wrote:

> Hey.
> I have a very annoying problem, and was wondering what is wrong.
> Suppose I have backgroundrb running, and then I have an action in some
> controller. In the action I define a worker. When leaving the action,
> suddenly the connection to backgroundrb is lost:
> DRb URI: druby://localhost:22222
> Pid: 3976
> Autostart...
> done
> druby://localhost:42531 - #<Errno::EBADF: Bad file descriptor -  
> connect(2)>
> druby://localhost:42531 - #<Errno::EBADF: Bad file descriptor -  
> connect(2)>
> ...
> When I'm still in the action, for instance using 'sleep 10'. As long
> I'm inside the action, there's no problem with the worker.
> Why is that?
> Why would the connection to the worker be lost?
> Thanks,
> Omer.

	Can you paste the code in question? I am not sure what you are  
trying to do that is causing you trouble.


More information about the Backgroundrb-devel mailing list