The server can't receive ping/pong thought ping/pong sampler
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)
-
repo owner -
reporter - changed status to closed
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!
- Log in to comment
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