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@1700870 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Sep 2, 2015
1 parent c8b0e4b commit 8d367ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/org/apache/catalina/connector/OutputBuffer.java
Expand Up @@ -21,7 +21,7 @@
import java.security.AccessController;
import java.security.PrivilegedActionException;
import java.security.PrivilegedExceptionAction;
import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;

import javax.servlet.WriteListener;
import javax.servlet.http.HttpServletResponse;
Expand Down Expand Up @@ -125,7 +125,7 @@ public class OutputBuffer extends Writer
/**
* List of encoders.
*/
protected final HashMap<String, C2BConverter> encoders = new HashMap<>();
protected final ConcurrentHashMap<String, C2BConverter> encoders = new ConcurrentHashMap<>();


/**
Expand Down

0 comments on commit 8d367ee

Please sign in to comment.