Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create new connections per iteration- websocket sampler #75

Open
shwetahooda opened this issue Nov 13, 2017 · 1 comment
Open

Comments

@shwetahooda
Copy link

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

@Slee-Li
Copy link

Slee-Li commented Jul 20, 2019

fix case:
//import java.util.LinkedList;
import java.util.concurrent.ConcurrentLinkedQueue;

//protected Deque responeBacklog = new LinkedList();
Queue responeBacklog = new ConcurrentLinkedQueue();

test OK!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants