Is there any elegant method for checking if a drb server is still
alive from the client side?
My server notifies my client when it finished a job through the
observer method. However, it is possible that the server dies (or the
network connection gets broken), and I need to detect this. I
implemented a thread which continously “pings” (calls a simple
remote_obj.ping) and rescues any exceptions in this method call. Is
there a better solution out there?
Is there any elegant method for checking if a drb server is still
alive from the client side?
My server notifies my client when it finished a job through the
observer method. However, it is possible that the server dies (or the
network connection gets broken), and I need to detect this. I
implemented a thread which continously “pings” (calls a simple
remote_obj.ping) and rescues any exceptions in this method call. Is
there a better solution out there?
My server notifies my client when it finished a job through the
observer method. However, it is possible that the server dies (or the
network connection gets broken), and I need to detect this. I
implemented a thread which continously “pings” (calls a simple
remote_obj.ping) and rescues any exceptions in this method call. Is
there a better solution out there?
depending on how many clients there are each one can call a method on
the server that never returns (Thread.sleep). if the method ever
returns in the client it knows the server has died. this obviously
only works for a small number of clients.