Unable to create new connections per iteration- websocket sampler
Hi, I have a scenario where a user makes websocket connection to an application and continues receiving messages. When a user sends a particular message, the connection gets closed. This works fine for one iteration. However, when the user attempts second iteration, it is not able to open a new connection and can't even reopen the existing connection.
[Problems]
- Unexpected error: RemoteEndpoint unavailable, current state [CLOSED], expecting [OPEN or CONNECTED] org.eclipse.jetty.websocket.common.WebSocketSession.getRemote(WebSocketSession.java:245) JMeter.plugins.functional.samplers.websocket.ServiceSocket.sendMessage(ServiceSocket.java:189) JMeter.plugins.functional.samplers.websocket.WebSocketSampler.sample(WebSocketSampler.java:141) org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475) org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418) org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249) java.lang.Thread.run(Unknown Source) I am using JMeter 3.1
Has anyone else observed this issue with Websocket Sampler?
Appreciate any help.
Thanks
fix case: //import java.util.LinkedList; import java.util.concurrent.ConcurrentLinkedQueue;
//protected Deque<String> responeBacklog = new LinkedList<String>(); Queue<String> responeBacklog = new ConcurrentLinkedQueue<String>();
test OK!!