Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix concurrent access of encoders map when clearing encoders prior to switch to async.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1701093 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Sep 3, 2015
1 parent 6895ea3 commit f89388a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/org/apache/catalina/connector/InputBuffer.java
Expand Up @@ -21,7 +21,7 @@
import java.security.AccessController; import java.security.AccessController;
import java.security.PrivilegedActionException; import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction; import java.security.PrivilegedExceptionAction;
import java.util.HashMap; import java.util.concurrent.ConcurrentHashMap;


import javax.servlet.ReadListener; import javax.servlet.ReadListener;


Expand Down Expand Up @@ -104,7 +104,7 @@ public class InputBuffer extends Reader
/** /**
* List of encoders. * List of encoders.
*/ */
protected final HashMap<String,B2CConverter> encoders = new HashMap<>(); protected final ConcurrentHashMap<String,B2CConverter> encoders = new ConcurrentHashMap<>();




/** /**
Expand Down

0 comments on commit f89388a

Please sign in to comment.