WebSocket I/O error: Software caused connection abort: socket write error

Issue #116 new
Đoàn Nhất Nam created an issue

I run a Thread Group with below samplers:

  • WebSocket Open Connection
  • WebSocket Single Read Sampler
  • WebSocket Ping/Pong Frame Filter
  • Loop Forever

    • WebSocket Ping/Pong (just send pong)

After running in about 1 minutes, I got this error in the Ping/Pong samplers:

Response code: Websocket I/O error
Response message: WebSocket I/O error: Software caused connection abort: socket write error

I tried to create a websocket connection with a chrome extension and it is not closed like in Jmeter.

How can I resolve this issue?

I searched for this error but still not found the solution. If there is any article or document related to it, please tell me.

Thank you.

Comments (4)

  1. Peter Doornbosch repo owner

    As connection from chrome works fine, the best way to attack this is to capture the websocket communication between chrome and server with WireShark or similar tool, and investigate what websocket messages are exchanged by client (chrome) and server. Than, set up / change your testplan to mimic this flow and it should work.

    Regards

    Peter

  2. Đoàn Nhất Nam reporter

    I run again and this issue didn’t happen. Don’t know why. It would be great if we can know the reason to avoid in the future.

    Btw, Our real scenario is that client opens a connection and only wait for data from the server. There are no outgoing message. I don’t see any samplers which can wait for message from the server (including ping message) and to be fail if there is no message from the server in a specific period. So I used Ping/Pong with a loop condition to test.

  3. Log in to comment