tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kfuj...@apache.org
Subject svn commit: r1439780 - /tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java
Date Tue, 29 Jan 2013 08:24:03 GMT
Author: kfujino
Date: Tue Jan 29 08:24:02 2013
New Revision: 1439780

URL: http://svn.apache.org/viewvc?rev=1439780&view=rev
Log:
Additional fix for r1439757.
Prevent SSO deregister when node shutdown normally in cluster environment. 

Modified:
    tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java

Modified: tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java?rev=1439780&r1=1439779&r2=1439780&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java (original)
+++ tomcat/trunk/java/org/apache/catalina/authenticator/SingleSignOn.java Tue Jan 29 08:24:02
2013
@@ -197,6 +197,10 @@ public class SingleSignOn extends ValveB
     @Override
     public void sessionEvent(SessionEvent event) {
 
+        if (!getState().isAvailable()) {
+            return;
+        }
+
         // We only care about session destroyed events
         if (!Session.SESSION_DESTROYED_EVENT.equals(event.getType())
                 && (!Session.SESSION_PASSIVATED_EVENT.equals(event.getType()))) {



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


Mime
View raw message