theturtle32/AS3WebSocket

Failed to connect Spring Boot 1.4.2 (Tomcat 8.5.6)

Opened this issue · 4 comments

I'm trying connect to Spring Boot server (v1.4.2, Tomcat 8.5.6) valid CA signed certificate (SHA256withRSA, SHA1withRSA, 2048) and GOT ALERT! type=40, which looks like handshake issue. Any insight is appreciated.

The connection issue was solved by configuring property server.ssl.ciphers=ALL.
Now I get protocol errors on server side. It happens when fragmented message is sent by the client. E.g.
CloseStatus[code=1002, reason=A WebSocket frame was sent with an unrecognised opCode of [15]];
CloseStatus[code=1002, reason=The client frame set the reserved bits to [6] for a message with opCode [15] which was not supported by this end

Maybe Explanation helps?

The issue above occurs on IE 11.0 and works fine under Chrome.

I tried set origin other than '', e.g.
new WebSocket("ws://localhost:4321/", "http://localhost:4321/");
It works only if you set allowed origins as '
' on the server side. Otherwise you get 403.
When I request the same server from JS - it works fine with same origin server policy or 'http://localhost:4321/ allowed'.
Any idea?