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-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org