Secure websocket goes timeout during handshake
-
Hi,
I'm creating a secure websocket for my webchannel and access it from my navigator (wss://localhost:12345).
This work fine on my computer.However, when I put the same excutable (with dlls, certificats, etc) on a production machine, I get a timout on the handshake.
Nothing is different.The network card information are:
Intel(R) Dual Band Wireless-AC 3165
Intel(R) Ethernet Connection I219-VDo you know how to solve this ?
Thanks in advance
-
Hi,
Might be a silly question but did you check that you also deployed the OpenSSL libraries ?
-
What OS are you using?
I had similar problem on OSX with the websocket Qt example.
When I started the application running from a mounted pendrive it seems it couldn't connect using SSL.
When I moved the application in the main partition the problem disappeared. -
You should get an OpenSSL build that matches your compiler.
Current (as in we are the 19.05.2017) constraint: use a version smaller than 1.1. OpenSSL 1.1 breaks the API. There's currently a new backend in preparation for Qt to accommodate the new API.
-
I tried to install OpenSSl for windows 1.0.2 from https://slproweb.com/products/Win32OpenSSL.html
But this didn't work neither.
I tried to change environment variable and stuff but I still get the same error. -
Which architecture are you building your application for ?
Which compiler are you using ?
Was your installed OpenSSL built with the same compiler as Qt ? -
Since 5.9 is now out, did you test with it to see if it's still happening ?
-
What are the symptoms of that bug ?
-
Is it happening with 4.3 ?
-
I tried with 4.3 now.
It open the project successfully.
But I don't get any error or message in the console.
I put a breakpoint in the new connection handler but is never triggered.The connection might be blocked before the get to the application.
I tried open the port on the in-coming and out-coming rules of the firewall, I've even tried to deactivate but it doesn't solve the problem.
Something is blocking the connection without creating any error but I don't know what.