-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possible session-timeout issue with Tomcat 7.0.68 #287
Comments
Can you do me a favor and check the sample https://github.com/magro/memcached-session-manager/tree/master/samples with 68? The tomcat version is a property in the pom. |
Sure. Changed to but it to '7.0.68' still starts with: How can we test if session-timeout have dropped significant after i get the test running? I can look in the memcached console-log perhaps. (using 7.0.47 "set 1E2A295CE4A1D045DA5769CF76D5AB89-n2 2048 240 187") |
Needs to change version in some other way. |
Ok, this is in master now, with .68. When running the sample, http://localhost:9090/counter shows a lower session timeout compared to 67. Strange, maybe it's a bug in tomcat? |
Maybe I found a bug after all. Why do I always have to be the first one :) |
Can you reproduce this issue with plain tomcat and no msm involved? |
What I did was removing: |
When you removed the Manager element you actually used the StandardManager. If it worked as expected in this configuration, what is what I understand from your message, it seems to be an issue with msm. |
You understood it correct, it worked with StandardManager, I will try to look into it. |
@kimmob The latest tomcat 6.0.45 seems to have a similar issue, just FYI. |
This is needed for tomcat 6.0.45+ and tomcat 7.0.68+, because there Manager.getMaxInactiveInterval is broken https://github.com/apache/tomcat60/blob/trunk/java/org/apache/catalina/session/ManagerBase.java#L596 https://github.com/apache/tomcat70/blob/trunk/java/org/apache/catalina/session/ManagerBase.java#L426 compared to tomcat 8: https://github.com/apache/tomcat80/blob/trunk/java/org/apache/catalina/session/ManagerBase.java#L427 Fixes #48, #287
This is needed for tomcat 6.0.45+ and tomcat 7.0.68+, because there Manager.getMaxInactiveInterval is broken https://github.com/apache/tomcat60/blob/trunk/java/org/apache/catalina/session/ManagerBase.java#L596 https://github.com/apache/tomcat70/blob/trunk/java/org/apache/catalina/session/ManagerBase.java#L426 compared to tomcat 8: https://github.com/apache/tomcat80/blob/trunk/java/org/apache/catalina/session/ManagerBase.java#L427 Fixes #48, #287
@kimmob I just released 1.9.2 with the fix. |
We got major issues upgrading from 7.0.67 to 7.0.68. The sessions gets invalidated after around 30 seconds. We do use an old version of the manager so I do not know for sure there is a problem with the latest version.
Using:
x memcached-session-manager-1.6.3.jar
x memcached-session-manager-tc7-1.6.3.jar
x spymemcached-2.8.4.jar
Sorry for reporting a problem with an ancient version, I just thought it could be interesting to investigate the changes in .68.
The text was updated successfully, but these errors were encountered: