Improve the fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=50201
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 13 Dec 2010 02:09:32 +0000 (02:09 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 13 Dec 2010 02:09:32 +0000 (02:09 +0000)
commit6015d2853a71b19128ebad9e7a2a79afcda6e868
treee156871fe14a87fc89542fb5e32011d835d8cb08
parent451b75e29dbcdce52e192226161597fa8726c83f
Improve the fix for https://issues.apache.org/bugzilla/show_bug.cgi?id=50201
- Use AtomicReference to guard against possible duplicate registration of
  listeners when logAccess() is called by several threads at the same time.
- Added install() and uninstall() method to AccessLogListener
  to help register/unregister the listeners.
- When defaultAccessLog is nulled, always unregister the listener as well.
  The listener does not need to be reused, because now we do create a listener
  when there is no log and it will take care of things.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1045003 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/core/StandardEngine.java
webapps/docs/changelog.xml