You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2002/05/11 01:54:42 UTC

cvs commit: jakarta-tomcat-connectors/jk/java/org/apache/jk/common ChannelSocket.java

costin      02/05/10 16:54:42

  Modified:    jk/java/org/apache/jk/common ChannelSocket.java
  Log:
  Reduce the number of messages when the server dies ( or closes connections )
  
  Revision  Changes    Path
  1.12      +6 -3      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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ChannelSocket.java	25 Apr 2002 23:13:24 -0000	1.11
  +++ ChannelSocket.java	10 May 2002 23:54:42 -0000	1.12
  @@ -308,7 +308,7 @@
           
           if(rd < 0) {
               // Most likely normal apache restart.
  -            log.warn("Wrong message " + rd );
  +            // log.warn("Wrong message " + rd );
               return rd;
           }
   
  @@ -378,7 +378,7 @@
                   // This happens periodically, as apache restarts
                   // periodically.
                   // It should be more gracefull ! - another feature for Ajp14
  -                log.warn( "Read result -1, connection close by server" );
  +                // log.warn( "server has closed the current connection (-1)" );
                   return -3;
               }
   
  @@ -418,7 +418,10 @@
               while( running ) {
                   int status= this.receive( recv, ep );
                   if( status <= 0 ) {
  -                    log.warn("Invalid packet, closing connection" );
  +                    if( status==-3)
  +                        log.warn( "server has closed the current connection (-1)" );
  +                    else 
  +                        log.warn("Closing ajp connection " + status );
                       break;
                   }
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>