fshutdown / JMeter-WebSocketSampler

JMeter - WebSocket Sampler
Apache License 2.0
312 stars 191 forks source link

Facing "Unknown Source" error in case of wss #32

Open Thrilochana opened 9 years ago

Thrilochana commented 9 years ago

Hi All,

ws connection working fine for me. but for wss connections I am facing unknown source error.

Using 1.0.1 version.

Any suggestions?

Error message Thread Name: In App messaging 1-1 Sample Start: 2015-01-21 14:39:13 IST Load time: 5333 Latency: 0 Size in bytes: 0 Headers size in bytes: 0 Body size in bytes: 0 Sample Count: 1 Error Count: 1 Response code: Response message:

[Execution Flow]

[Variables]

[Problems]

Response headers:

SampleResult fields: ContentType: DataEncoding: UTF-8

Thanks, Thrilochana

n5i commented 9 years ago

Hi, I've faced a related problem. The ws works but wss doesn't. On JMeter side I see the timeout error.

I'm testing my service which is written with golang. Gorilla websocket is used for the websocket handling. Http connection is upgraded to websocket.

On the backend I'm observing a handshage error: "http: TLS handshake error from [cleaned]: tls: unsupported SSLv2 handshake received"

I've tried to set the JMeter system propertied to use other protocol versions. But the error is always the same.

JMeter is run under CentOS 6. java version "1.7.0_75" OpenJDK Runtime Environment (rhel-2.5.4.0.el6_6-x86_64 u75-b13) OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)

Thrilochana commented 9 years ago

Hi,

After some trial and error scenarios, found that jetty libraries does not support proxy server. I was trying to connect the websocket server through a corporate proxy. Due to this I could not connect to the server and ended up "Unknown ho

When I tried by having websocket server and client(jemeter) in internet, requests went fine.

Jetty bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=409516