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-V

    Do you know how to solve this ?

    Thanks in advance

  • Lifetime Qt Champion


    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.

  • I'm using windows 10. And the application doesn't crash.

    I will take a look at OpenSSL librairies but since I use windeployqt it should be fine.

  • You're right, I don't see any dll from OpenSSl.
    Should I install a specific version on the computer or just add some librairies to my app directory ?

  • Lifetime Qt Champion

    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.

Log in to reply