Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Secure websocket goes timeout during handshake

Secure websocket goes timeout during handshake

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 3 Posters 10.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #2

    Hi,

    Might be a silly question but did you check that you also deployed the OpenSSL libraries ?

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    1
    • L Offline
      L Offline
      luca
      wrote on last edited by
      #3

      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.

      1 Reply Last reply
      0
      • PayanAxP Offline
        PayanAxP Offline
        PayanAx
        wrote on last edited by
        #4

        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.

        1 Reply Last reply
        0
        • PayanAxP Offline
          PayanAxP Offline
          PayanAx
          wrote on last edited by
          #5

          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 ?

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #6

            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.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • PayanAxP Offline
              PayanAxP Offline
              PayanAx
              wrote on last edited by
              #7

              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.

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #8

                Which architecture are you building your application for ?
                Which compiler are you using ?
                Was your installed OpenSSL built with the same compiler as Qt ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • PayanAxP Offline
                  PayanAxP Offline
                  PayanAx
                  wrote on last edited by
                  #9

                  I'm building for X64 architecture with msvc2015 (Qt 5.8).
                  The version of OpenSSL is for x64 too.

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Since 5.9 is now out, did you test with it to see if it's still happening ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • PayanAxP Offline
                      PayanAxP Offline
                      PayanAx
                      wrote on last edited by
                      #11

                      Doesn't work neither in 5.9.
                      I deactivated the firewall (just in case) but not result neither.
                      The thing is, I cannot debug it on that machine because QtCreator experience a bug on this device (raison unknown).

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        What are the symptoms of that bug ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        1
                        • PayanAxP Offline
                          PayanAxP Offline
                          PayanAx
                          wrote on last edited by
                          #13

                          The bug with Qt Creator?
                          When the editor open a project, it get stuck in an infinite loop while trying to parse the project file (.pro).

                          1 Reply Last reply
                          0
                          • SGaistS Offline
                            SGaistS Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on last edited by
                            #14

                            Is it happening with 4.3 ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0
                            • PayanAxP Offline
                              PayanAxP Offline
                              PayanAx
                              wrote on last edited by
                              #15

                              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.

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved