tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/common ChannelSocket.java
Date Tue, 14 May 2002 20:45:19 GMT
costin      02/05/14 13:45:19

  Modified:    jk/java/org/apache/jk/common ChannelSocket.java
  Log:
  Filter ConnectionReset messages
  
  Revision  Changes    Path
  1.13      +5 -1      jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelSocket.java
  
  Index: ChannelSocket.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jk/java/org/apache/jk/common/ChannelSocket.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ChannelSocket.java	10 May 2002 23:54:42 -0000	1.12
  +++ ChannelSocket.java	14 May 2002 20:45:19 -0000	1.13
  @@ -434,7 +434,11 @@
               }
               this.close( ep );
           } catch( Exception ex ) {
  -            ex.printStackTrace();
  +            if( ex.getMessage().indexOf( "Connection reset" ) >=0 ) {
  +                log.warn( "Server has closed connection");
  +            } else {
  +                log.error( "Error, closing connection", ex);
  +            }
           }
       }
   
  
  
  

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


Mime
View raw message