Read timeout with single read sampler

Issue #54 closed
sudhakar reddy narra created an issue

Hi,

Thank you for the plugin. 1. In our application first it establishes websocket connection and sends one request and receives the response back 2. Later based on user actions(http requests), server sends back the response with identifier on webscoket, so there is no webscoket write request.

Using your plugin, I am able to successfully simulate point 1, but for point 2 when I use single read sampler after http request, I am not receiving any response back. Getting error message saying "Response code: Websocket I/O error Response message: WebSocket I/O error: Read timed out"

Can you please help me with this

Comments (4)

  1. Peter Doornbosch repo owner

    Hi,

    Thanks for the feedback.

    For this use case, indeed the single read sampler is the way to go. The error message indicates that no message is received in the given time. You can increase the timeout of course; could help if the message is sent with some delay (by the server). If that is not the case, i guess your server is not sending the response. You could use a tool like WireShark to confirm.

    Regards, Peter

  2. sudhakar reddy narra reporter

    Thank you Peter, I was able to monitor the server logs and figure out the issue. There was some issue with the first websocket request.

  3. Log in to comment