This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/master by this push:
new 3738ba1 Another fix for BZ 64830
3738ba1 is described below
commit 3738ba1b5b7c7eedf7bf3ad33ef32460e810e3c6
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Nov 9 19:40:31 2020 +0000
Another fix for BZ 64830
https://bz.apache.org/bugzilla/show_bug.cgi?id=64830
---
java/org/apache/coyote/http2/ConnectionSettingsBase.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/java/org/apache/coyote/http2/ConnectionSettingsBase.java
b/java/org/apache/coyote/http2/ConnectionSettingsBase.java
index ed0dcd3..042fb0c 100644
--- a/java/org/apache/coyote/http2/ConnectionSettingsBase.java
+++ b/java/org/apache/coyote/http2/ConnectionSettingsBase.java
@@ -16,8 +16,8 @@
*/
package org.apache.coyote.http2;
-import java.util.EnumMap;
import java.util.Map;
+import java.util.concurrent.ConcurrentHashMap;
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
@@ -45,8 +45,8 @@ abstract class ConnectionSettingsBase<T extends Throwable> {
static final int DEFAULT_MAX_FRAME_SIZE = MIN_MAX_FRAME_SIZE;
static final long DEFAULT_MAX_HEADER_LIST_SIZE = 1 << 15;
- Map<Setting, Long> current = new EnumMap<>(Setting.class);
- Map<Setting, Long> pending = new EnumMap<>(Setting.class);
+ Map<Setting, Long> current = new ConcurrentHashMap<>();
+ Map<Setting, Long> pending = new ConcurrentHashMap<>();
ConnectionSettingsBase(String connectionId) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]