Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Little correction on crash detection.
authorSébastien Miquée <sebastien.miquee@univ-fcomte.fr>
Tue, 2 Aug 2011 14:02:45 +0000 (16:02 +0200)
committerSébastien Miquée <sebastien.miquee@univ-fcomte.fr>
Tue, 2 Aug 2011 14:02:45 +0000 (16:02 +0200)
src/and/hpcvm/Server.java

index 185b5f3..7c31580 100644 (file)
@@ -517,15 +517,17 @@ public class Server extends UnicastRemoteObject implements ServicesServer
                                        
                                        if( cl.getTimeout() > max_timeout || cl.getFail() )
                                        {
+                                               dead = true ;
                                                if( ! cl.getFail() )
                                                {
                                                        try {
                                                                cl.getStub().echo() ;
                                                                cl.resetTimeout() ;
+                                                               dead = false ;
                                                        } catch( RemoteException e ) {
                                                                dead = true ;
                                                        }
-                                               }
+                                               } 
                                                
                                                if( dead )
                                                {