Which protocol? In case of HTTP <https://developer.mozilla.org/en-US/docs/Web/HTTP>this is exactly how it supposed to work: one request -> one response, you cankeep the underlying TCP connection alive <https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive> so JMeter would re-use the connection for sending the next request, but HTTP Request <https://jmeter.apache.org/usermanual/component_reference.html#HTTP_Request> sampler won't expect any additional responses.

In case of Server Side Events <https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events> you will need to do some scripting in order to handle the situation like it's described in How to Load Test SSE Services with JMeter <https://www.blazemeter.com/blog/how-to-load-test-sse-services-with-jmeter>

In case of WebSockets <https://developer.mozilla.org/en-US/docs/Web/API/WebSocket>take a look at Read continuation frames.jmx <https://bitbucket.org/pjtr/jmeter-websocket-samplers/src/master/samples/Read%20continuation%20frames.jmx> example test plan

etc.


On 5/13/2022 9:39 AM, Chandru S wrote:
Hi Team,

I am facing a scenario where the server will send send two response one
after another. Jmeter received the first response and closed the request so
second response is not received. Kindly check and confirm whether Jmeter
can receive multiple responses or not.

Regards,
Chandru

Reply via email to