avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/server/impl StreamServerConnection.java
Date Sat, 06 Apr 2002 11:46:08 GMT
leif        02/04/06 03:46:08

  Modified:    altrmi/src/java/org/apache/excalibur/altrmi/server/impl
                        StreamServerConnection.java
  Log:
  EOFExceptions were not being detected and handled correctly.
  
  Revision  Changes    Path
  1.2       +5 -2      jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/server/impl/StreamServerConnection.java
  
  Index: StreamServerConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/altrmi/src/java/org/apache/excalibur/altrmi/server/impl/StreamServerConnection.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StreamServerConnection.java	3 Apr 2002 11:29:55 -0000	1.1
  +++ StreamServerConnection.java	6 Apr 2002 11:46:08 -0000	1.2
  @@ -17,6 +17,7 @@
   import org.apache.avalon.framework.logger.LogEnabled;
   import org.apache.avalon.framework.logger.Logger;
   
  +import java.io.EOFException;
   import java.io.ObjectInputStream;
   import java.io.ObjectOutputStream;
   import java.io.IOException;
  @@ -33,7 +34,7 @@
    *
    *
    * @author Paul Hammant <a href="mailto:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public abstract class StreamServerConnection implements Runnable, AltrmiServerConnection,
LogEnabled {
   
  @@ -94,7 +95,9 @@
                       }
                   } catch (IOException ioe) {
                       more = false;
  -                    if (ioe instanceof SocketException
  +                    if (ioe instanceof EOFException) {
  +                        mLogger.info("One Connection closed. (EOF)");
  +                    } else if (ioe instanceof SocketException
                               || ioe.getClass().getName().equals("java.net.SocketTimeoutException")
                               || ioe instanceof InterruptedIOException
                               || (ioe.getMessage() != null
  
  
  

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


Mime
View raw message