Hi, During testing of Shiro 2.0.3, I ran into a bug that existed since Shiro 1.1.0 It uses InheritableThreadLocal map to save SecurityManager, Session, etc. I found that it causes ThreadLocal leakages whenever a servlet, for example, starts any other threads.
Please see https://github.com/apache/shiro/issues/2081 and https://github.com/apache/shiro/pull/2082 Any feedback would be appreciated. I am looking to merge and release 2.0.4 that includes this fix ASAP, so if you have an issue with the way this was fixed, please let me know. Thank you!
