Empty response opening socket
Hi, I’m trying to test some socket, using jmeter 5.4.3 and WebSocket Samplers 1.2.8
I allways get a connection closed with zero response
On the other hand when I use the utility socketTest 3.0 it works just fine, oppening the socket and sending/receiving data
The debug info I have is:
2022-05-11 20:28:04,752 DEBUG o.a.j.c.GenericController: Calling next on: class org.apache.jmeter.control.GenericController
2022-05-11 20:28:04,752 DEBUG e.l.w.WebSocketClient: Creating connection with aaa.bbb.ccc.ddd:1744 '(I changed real IP)
2022-05-11 20:28:04,774 DEBUG e.l.w.WebSocketClient: >> GET / HTTP/1.1
2022-05-11 20:28:04,774 DEBUG e.l.w.WebSocketClient: >> Host: aaa.bbb.ccc.ddd:1744
2022-05-11 20:28:04,774 DEBUG e.l.w.WebSocketClient: >> Upgrade: websocket
2022-05-11 20:28:04,774 DEBUG e.l.w.WebSocketClient: >> Connection: Upgrade
2022-05-11 20:28:04,774 DEBUG e.l.w.WebSocketClient: >> Sec-WebSocket-Key: Ko/3qVnvoxTDzFMvZ2YugQ==
2022-05-11 20:28:04,774 DEBUG e.l.w.WebSocketClient: >> Sec-WebSocket-Version: 13
2022-05-11 20:28:04,774 DEBUG e.l.w.WebSocketClient: >>
2022-05-11 20:28:04,797 DEBUG e.l.j.w.OpenWebSocketSampler: I/O Error in sampler 'WebSocket Open Connection'.
eu.luminis.websocket.HttpProtocolException: Empty response; connection closed.
at eu.luminis.websocket.WebSocketClient.checkServerResponse(WebSocketClient.java:476) ~[JMeterWebSocketSamplers-1.2.8.jar:?]
The listener shows:
Thread Name:Thread Group 1-1
Sample Start:2022-05-11 20:28:04 CLT
Load time:45
Connect Time:0
Latency:0
Size in bytes:0
Sent bytes:0
Headers size in bytes:0
Body size in bytes:0
Sample Count:1
Error Count:1
Data type ("text"|"bin"|""):
Response code:Websocket I/O error
Response message:WebSocket I/O error: Empty response; connection closed.
SampleResult fields:
ContentType:
DataEncoding: null
I’d really appreciate your help
Regards
Comments (3)
-
repo owner -
repo owner -
repo owner - changed status to resolved
- Log in to comment
So
So: there is almost certainly a difference between what your JMeter client test plan is sending and what your other test utility is sending!
To find out the difference: capture both websocket sessions with WireShark and compare.