jmesnil / stomp-websocket

Stomp client for Web browsers and node.js apps
http://jmesnil.net/stomp-websocket/doc/
Apache License 2.0
1.44k stars 587 forks source link

Websocket connection failed - invalid frame header #135

Open totojack opened 7 years ago

totojack commented 7 years ago

Hi.

I'm trying to debug this error from chrome web browser. These are some details of the application stack:

I've attached an image of chrome dev tools with frames related to the failing ws request, and one of them is the cause of the error. Can you give me some advise? Should it depend on services stack? I don't see errors on application server nor on web server. Same problem on firefox.

Thanks Luca

sockerr3

dazed19 commented 7 years ago

Hi - I realise this is slightly old.

We had similar problem to this using Apache HTTPD 2.4 as included in base Linux via yum install (using RedHat or Oracle EL to be explicit).

To resolve this we had to build from source to get WebSocket support resolved - we ended on 2.4.25 - but I think fixed in earlier patch - the issue (I think) is that on RHEL v7 httpd is functionally stuck at 2.4.6 with security patches only applied.

I might suggest (to prove it's apache) you test with by pypassing httpd - I used an SSH Tunnel into app server to do this e.g. "ws://localhost:8080/"

alifellod commented 6 years ago

It seems to be related to the browser, and the frequency of sending, packet size related