tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r375709 - in /tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp: ReplicationValve.java TcpReplicationThread.java
Date Tue, 07 Feb 2006 21:13:27 GMT
Author: fhanik
Date: Tue Feb  7 13:13:25 2006
New Revision: 375709

URL: http://svn.apache.org/viewcvs?rev=375709&view=rev
Log:
Error message is a warning, not an error since the connecting sockets get closed.

Modified:
    tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationValve.java
    tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/TcpReplicationThread.java

Modified: tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationValve.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationValve.java?rev=375709&r1=375708&r2=375709&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationValve.java
(original)
+++ tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/ReplicationValve.java
Tue Feb  7 13:13:25 2006
@@ -347,8 +347,7 @@
             Manager manager = request.getContext().getManager();
             if (manager != null && manager instanceof ClusterManager) {
                 ClusterManager clusterManager = (ClusterManager) manager;
-                CatalinaCluster containerCluster = (CatalinaCluster) getContainer()
-                        .getCluster();
+                CatalinaCluster containerCluster = (CatalinaCluster) getContainer().getCluster();
                 if (containerCluster == null) {
                     if (log.isWarnEnabled())
                         log.warn(sm.getString("ReplicationValve.nocluster"));

Modified: tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/TcpReplicationThread.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/TcpReplicationThread.java?rev=375709&r1=375708&r2=375709&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/TcpReplicationThread.java
(original)
+++ tomcat/container/tc5.5.x/modules/cluster/src/share/org/apache/catalina/cluster/tcp/TcpReplicationThread.java
Tue Feb  7 13:13:25 2006
@@ -68,8 +68,9 @@
             try {
                 drainChannel (key);
             } catch (Exception e) {
-                log.error ("TCP Worker thread in cluster caught '"
-                    + e + "' closing channel", e);
+                //this is common, since the sockets on the other
+                //end expire after a certain time.
+                log.warn ("TCP Worker thread in cluster caught '" + e + "' closing channel",
e);
 
                 // close channel and nudge selector
                 try {



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


Mime
View raw message