Hi,
It looks, that WebSocket client is unable to handle SSL errors, when initial connection has been established. For example, when we connect to non-ssl host with wss:// protocol, client should raise error, but it doesn't (I think, similar problem exists for other ssl errors, like untrusted certifcate).
How to reproduce:
edit line:
|
WebSocketRequest.ws("echo.websocket.org", "/", QueryParameter.single("encoding", "text")) |
with:
WebSocketRequest.wss("echo.websocket.org", 80, "/", QueryParameter.single("encoding", "text")) (use wss method instead of ws and explicitly set port to 80)
and run the test. I would expect, that client will raise error, but actual client will hang forever.
Hi,
It looks, that WebSocket client is unable to handle SSL errors, when initial connection has been established. For example, when we connect to non-ssl host with wss:// protocol, client should raise error, but it doesn't (I think, similar problem exists for other ssl errors, like untrusted certifcate).
How to reproduce:
edit line:
fs2-http/src/test/scala/spinoco/fs2/http/websocket/WebSocketClientApp.scala
Line 26 in 4bcac1b
with:
WebSocketRequest.wss("echo.websocket.org", 80, "/", QueryParameter.single("encoding", "text"))(use wss method instead of ws and explicitly set port to 80)and run the test. I would expect, that client will raise error, but actual client will hang forever.