How to simulate server push and avoid fragmented responses

Issue #132 closed
Jitender created an issue

I am trying to simulate web socket scenario where server is sending data to the browser in every few seconds. How can I simulate this. Also I am able to get data using Read Sampler but it is coming fragmented. In browser it is not coming fragmented.

Comments (5)

  1. Jitender reporter

    thanks Peter for the quick response. Actually my Jmeter replay is getting response in fragments but that is not happening in actual web browser. here are the different snapshots. Below snapshot shows web socket communication from web browser.

    and below one from Jmeter replay.

    So just want to check if it is possible to make data come just like web browser in one frame.

  2. Peter Doornbosch repo owner

    Hi,

    I’m not sure whether the browser capture proofs that the messages where not fragmented on the wire; maybe the browser hides this level of detail. Only a wireshark capture will reveal whether the messages are fragmented.

    The question how you can make the data come in one frame, i cannot answer; it is your server who is deciding when to split a message into fragments. There is no negotiation about such settings with the client; it’s solely the server that decides.

    Hth

    Peter

  3. Log in to comment