costin 2002/12/19 07:36:32 Modified: jk/java/org/apache/jk/common ChannelSocket.java Log: Change log level to debug for "Connection closed". This is a normal message that happens quite often for Apache1.3, where each child process can restart after a number of requests. This would avoid filling the logs. Revision Changes Path 1.30 +29 -29 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.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- ChannelSocket.java 11 Dec 2002 07:34:25 -0000 1.29 +++ ChannelSocket.java 19 Dec 2002 15:36:32 -0000 1.30 @@ -303,34 +303,34 @@ /** * @jmx:managed-operation */ - public void init() throws IOException { - // Find a port. - if (startPort == 0) { - port = 0; - log.info("JK2: ajp13 disabling channelSocket"); - running = true; - return; - } - if (maxPort < startPort) - maxPort = startPort; - if (getAddress() == null) - setAddress("0.0.0.0"); - for( int i=startPort; i<=maxPort; i++ ) { - try { - sSocket=new ServerSocket( i, 0, inet ); - port=i; - break; - } catch( IOException ex ) { - log.info("Port busy " + i + " " + ex.toString()); - continue; - } - } - - if( sSocket==null ) { - log.error("Can't find free port " + startPort + " " + maxPort ); - return; - } - log.info("JK2: ajp13 listening on " + getAddress() + ":" + port ); + public void init() throws IOException { + // Find a port. + if (startPort == 0) { + port = 0; + log.info("JK2: ajp13 disabling channelSocket"); + running = true; + return; + } + if (maxPort < startPort) + maxPort = startPort; + if (getAddress() == null) + setAddress("0.0.0.0"); + for( int i=startPort; i<=maxPort; i++ ) { + try { + sSocket=new ServerSocket( i, 0, inet ); + port=i; + break; + } catch( IOException ex ) { + log.info("Port busy " + i + " " + ex.toString()); + continue; + } + } + + if( sSocket==null ) { + log.error("Can't find free port " + startPort + " " + maxPort ); + return; + } + log.info("JK2: ajp13 listening on " + getAddress() + ":" + port ); // If this is not the base port and we are the 'main' channleSocket and // SHM didn't already set the localId - we'll set the instance id @@ -567,7 +567,7 @@ } } catch( Exception ex ) { if( ex.getMessage().indexOf( "Connection reset" ) >= 0) - log.info( "Server has been restarted or reset this connection"); + log.debug( "Server has been restarted or reset this connection"); else if (ex.getMessage().indexOf( "Read timed out" ) >=0 ) log.info( "connection timeout reached"); else
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>