PatchSet 3965 
Date: 2003/08/20 13:08:37
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fix for RMI Client termination.

Put scavenger in UnicastConnectionManager in daemon state.

Members: 
        ChangeLog:1.1563->1.1564 
        libraries/javalib/gnu/java/rmi/server/UnicastConnectionManager.java:1.1->1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.1563 kaffe/ChangeLog:1.1564
--- kaffe/ChangeLog:1.1563      Wed Aug 20 08:29:26 2003
+++ kaffe/ChangeLog     Wed Aug 20 13:08:37 2003
@@ -1,5 +1,12 @@
 2003-08-20  Guilhem Lavaux <[EMAIL PROTECTED]>
 
+       * libraries/javalib/gnu/java/rmi/server/UnicastConnectionManager.java:
+       (startScavenger) set the client connection manager to daemon state
+       because it may block clients until TIMEOUT is reached when they are
+       exiting.
+
+2003-08-20  Guilhem Lavaux <[EMAIL PROTECTED]>
+
        * libraries/javalib/java/rmi/Naming.java:
        (lookup,bind,rebind) check if the first character of the filename
        returned by URL.getFile() is a '/', only if it is the case we cut
Index: kaffe/libraries/javalib/gnu/java/rmi/server/UnicastConnectionManager.java
diff -u kaffe/libraries/javalib/gnu/java/rmi/server/UnicastConnectionManager.java:1.1 
kaffe/libraries/javalib/gnu/java/rmi/server/UnicastConnectionManager.java:1.2
--- kaffe/libraries/javalib/gnu/java/rmi/server/UnicastConnectionManager.java:1.1      
 Mon Aug 18 17:40:33 2003
+++ kaffe/libraries/javalib/gnu/java/rmi/server/UnicastConnectionManager.java   Wed 
Aug 20 13:08:38 2003
@@ -152,6 +152,9 @@
             if (debug) System.out.println("************* exit scavenger.");
         }
     });
+    // As it is used for client connection, we may put this thread
+    // in daemon state to prevent the VM from blocking when exiting.
+    scavenger.setDaemon(true);
     scavenger.start();
 }
 

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to