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

Ron Sigal ron_sigal at yahoo.com
Sun Aug 5 23:59:42 EDT 2007


  User: rsigal  
  Date: 07/08/05 23:59:42

  Modified:    src/main/org/jboss/remoting/transport/socket  Tag:
                        remoting_2_2_0_GA ServerThread.java
  Log:
  JBREM-766: In run() put wait() in a loop and no longer rethrows InterruptedException.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.29.2.20.2.3 +16 -13    JBossRemoting/src/main/org/jboss/remoting/transport/socket/ServerThread.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ServerThread.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/socket/ServerThread.java,v
  retrieving revision 1.29.2.20.2.2
  retrieving revision 1.29.2.20.2.3
  diff -u -b -r1.29.2.20.2.2 -r1.29.2.20.2.3
  --- ServerThread.java	10 May 2007 08:47:21 -0000	1.29.2.20.2.2
  +++ ServerThread.java	6 Aug 2007 03:59:42 -0000	1.29.2.20.2.3
  @@ -66,7 +66,7 @@
    * @author <a href="mailto:tom at jboss.org">Tom Elrod</a>
    * @author <a href="mailto:ovidiu at jboss.org">Ovidiu Feodorov</a>
    *
  - * @version $Revision: 1.29.2.20.2.2 $
  + * @version $Revision: 1.29.2.20.2.3 $
    */
   public class ServerThread extends Thread
   {
  @@ -202,6 +202,8 @@
                     }
                  }
   
  +               while (true)
  +               {
                  try
                  {
                     if(trace) { log.trace(this + " begins to wait"); }
  @@ -209,6 +211,8 @@
                     wait();
   
                     if(trace) { log.trace(this + " woke up after wait"); }
  +                     
  +                     break;
                  }
                  catch (InterruptedException e)
                  {
  @@ -217,8 +221,7 @@
                        invoker = null;
                        return; // exit thread
                     }
  -
  -                  throw e;
  +                  }
                  }
               }
            }
  
  
  



More information about the jboss-cvs-commits mailing list