Forum: Ruby DRb and catching connection close

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
C6bf604c0f293ec84f7081133aab085d?d=identicon&s=25 Guillaume Kwi (kwi)
on 2007-01-19 17:12

I post here as i have a problem that i can't fix with DRb, i made two
(or more) servers connected together via DRb, and i want to catch the
"connection close" event if a script bug or just exit.

Drb raise an exception internally, but in a thread, so i can't catch it.
And when the program try to contact a dead other one, it freezes,
because it isn't aware of the deconnection.

Do u have an idea for catching this event without modify DRb class ?

Thanks in advance.
This topic is locked and can not be replied to.