james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/remotemanager RemoteManagerHandler.java
Date Wed, 17 Apr 2002 04:23:36 GMT
serge       02/04/16 21:23:36

  Modified:    src/java/org/apache/james/remotemanager
                        RemoteManagerHandler.java
  Log:
  Have it ignore IO/Socket exceptions when the remote manager handling commands (reported
by Larry Harnel as bug 6602 for when the socket times out).
  
  Revision  Changes    Path
  1.10      +5 -4      jakarta-james/src/java/org/apache/james/remotemanager/RemoteManagerHandler.java
  
  Index: RemoteManagerHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/remotemanager/RemoteManagerHandler.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- RemoteManagerHandler.java	18 Jan 2002 02:48:37 -0000	1.9
  +++ RemoteManagerHandler.java	17 Apr 2002 04:23:36 -0000	1.10
  @@ -44,8 +44,8 @@
    * @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
    * @author <a href="mailto:charles@benett1.demon.co.uk">Charles Benett</a>
    *
  - * Last changed by: $Author: darrell $ on $Date: 2002/01/18 02:48:37 $
  - * $Revision: 1.9 $
  + * Last changed by: $Author: serge $ on $Date: 2002/04/17 04:23:36 $
  + * $Revision: 1.10 $
    *
    */
   public class RemoteManagerHandler
  @@ -144,8 +144,9 @@
                   while (parseCommand(in.readLine())) {
                       scheduler.resetTrigger(this.toString());
                   }
  -            }
  -            catch (Throwable thr) {
  +            } catch (IOException ioe) {
  +                //We can cleanly ignore this as it's probably a socket timeout
  +            } catch (Throwable thr) {
                   System.out.println("Exception: " + thr.getMessage());
                   thr.printStackTrace();
               }
  
  
  

--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message