From 48369bfe2bfd46264a1fb22fa0861499e7451705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JB=20Onofr=C3=A9?= Date: Wed, 8 Nov 2023 15:01:17 +0100 Subject: [PATCH] AMQ-9383: Copy transport options before sending in introspection setter (cherry picked from commit f4be8a6806206df3c9ddb6566c2e48eff767d55d) --- .../java/org/apache/activemq/transport/ws/jetty9/WSServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-http/src/main/java/org/apache/activemq/transport/ws/jetty9/WSServlet.java b/activemq-http/src/main/java/org/apache/activemq/transport/ws/jetty9/WSServlet.java index 8cb3811e0e..49940585a3 100644 --- a/activemq-http/src/main/java/org/apache/activemq/transport/ws/jetty9/WSServlet.java +++ b/activemq-http/src/main/java/org/apache/activemq/transport/ws/jetty9/WSServlet.java @@ -159,7 +159,7 @@ public class WSServlet extends WebSocketServlet implements BrokerServiceAware { proxy = new WSTransportProxy(remoteAddress, transport); proxy.setPeerCertificates(request.getCertificates()); - proxy.setTransportOptions(transportOptions); + proxy.setTransportOptions(new HashMap<>(transportOptions)); response.setAcceptedSubProtocol(proxy.getSubProtocol()); } catch (Exception e) {