remm 2003/09/22 23:37:08 Modified: util/java/org/apache/tomcat/util/net PoolTcpEndpoint.java Log: - Fix logging of errors which occur in setSocketOptions. - This will also cause the connection to not be processed (which is a good thing, obviously). Revision Changes Path 1.19 +10 -14 jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/PoolTcpEndpoint.java Index: PoolTcpEndpoint.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/PoolTcpEndpoint.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- PoolTcpEndpoint.java 18 Sep 2003 16:09:16 -0000 1.18 +++ PoolTcpEndpoint.java 23 Sep 2003 06:37:07 -0000 1.19 @@ -475,17 +475,13 @@ } void setSocketOptions(Socket socket) - { - try { - if(linger >= 0 ) - socket.setSoLinger( true, linger); - if( tcpNoDelay ) - socket.setTcpNoDelay(tcpNoDelay); - if( socketTimeout > 0 ) - socket.setSoTimeout( socketTimeout ); - } catch( SocketException se ) { - se.printStackTrace(); - } + throws SocketException { + if(linger >= 0 ) + socket.setSoLinger( true, linger); + if( tcpNoDelay ) + socket.setTcpNoDelay(tcpNoDelay); + if( socketTimeout > 0 ) + socket.setSoTimeout( socketTimeout ); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]