The server can't receive ping/pong thought ping/pong sampler

Issue #192 closed
zhoury4 created an issue

Hi peter

I create connection with WebSocket request-response Sampler. I set a ping/pong sampler after the connect sampler. In WebSocket ping/pong sampler, I choose ping/pong(send ping,expect pong), and the pong(read) timeout(ms) set 10000.

In order to avoid sending ping/pong too fast, I added a Constant Timer (less than 10000 ms ) before send ping/pong every time, but our server also can't detect the heartbeat

our connection as follow:

String s = "CONNECT\n" +
"accept-version:1.2,1.1,1.0\n" +
"heart-beat:10000,10000\n" +
"\n" +
'\0'

Is there something wrong with my settings?

Comments (2)

  1. Peter Doornbosch repo owner

    Hi,

    I don’t know: these settings that you show are interpreted by your server, and are not part of the websocket protocol; they are part of the protocol that your server implements on top of the websocket protocol.

    Regards
    Peter

  2. zhoury4 reporter

    Hi, Our project need to send “/n” in ping, so the ping/pong sampler doesn't apply in our project. Now using webSocket Single Write Sampler with request data '/n', it can achieve the ping, the server can detect the heartbeat.

    Thanks!

  3. Log in to comment