[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/socket ...

Ron Sigal ron_sigal at yahoo.com
Tue Jul 10 20:35:03 EDT 2007


  User: rsigal  
  Date: 07/07/10 20:35:03

  Modified:    src/main/org/jboss/remoting/transport/socket  Tag:
                        remoting_2_x MicroSocketClientInvoker.java
  Log:
  JBREM-771:  When disconnecting, clears connection pool referenced by instance variable "pool".
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.16.2.33 +4 -4      JBossRemoting/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MicroSocketClientInvoker.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/socket/MicroSocketClientInvoker.java,v
  retrieving revision 1.16.2.32
  retrieving revision 1.16.2.33
  diff -u -b -r1.16.2.32 -r1.16.2.33
  --- MicroSocketClientInvoker.java	6 Jul 2007 06:04:43 -0000	1.16.2.32
  +++ MicroSocketClientInvoker.java	11 Jul 2007 00:35:03 -0000	1.16.2.33
  @@ -40,7 +40,7 @@
    * @author <a href="mailto:telrod at e2technologies.net">Tom Elrod</a>
    * @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
    *
  - * @version $Revision: 1.16.2.32 $
  + * @version $Revision: 1.16.2.33 $
    */
   public class MicroSocketClientInvoker extends RemoteClientInvoker
   {
  @@ -120,11 +120,10 @@
      /**
       * Close all sockets in a specific pool.
       */
  -   public static void clearPool(ServerAddress sa)
  +   public static void clearPool(LinkedList thepool)
      {
         try
         {
  -         LinkedList thepool = (LinkedList)connectionPools.get(sa);
            if (thepool == null)
            {
               return;
  @@ -164,7 +163,7 @@
               ServerAddress sa = (ServerAddress) i.next();
   
               if (trace) { log.trace("clearing pool for " + sa); }
  -            clearPool(sa);
  +            clearPool((LinkedList) connectionPools.get(sa));
               i.remove();
            }
         }
  @@ -477,6 +476,7 @@
      protected synchronized void handleDisconnect()
      {
         clearPools();
  +      clearPool(pool);
      }
   
      /**
  
  
  



More information about the jboss-cvs-commits mailing list