Skip to content

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

Description

@shwetahooda

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions