Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102111

Custom http header on wss connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.3.0, 6.3.1, 6.4.0 Beta1
    • 6.3.0 RC
    • WebSockets
    • None
    • Windows
    • 631fb7665f (qt/qtwebsockets/dev) 8d8dd1e666 (qt/qtwebsockets/6.3) 7d7c7974ce (qt/qtwebsockets/6.3.0) 8d8dd1e666 (qt/tqtc-qtwebsockets/6.3) 7d7c7974ce (qt/tqtc-qtwebsockets/6.3.0) 8d8dd1e666 (qt/qtwebsockets/6.3.1) 8d8dd1e666 (qt/tqtc-qtwebsockets/6.3.1)

    Description

      By adding a custom http header to a wss connection the code stalls after the SSL handshake with high CPU occupancy.
      In version Qt 6.2 and earlier the problem does not occur.

      //Working
      m_webSocket.open(QUrl(QStringLiteral("wss://localhost:1234")));
      ----------------------------------------
      //Not working
      QNetworkRequest request(QUrl(QStringLiteral("wss://localhost:1234")));
      request.setRawHeader("CustomHeader", "Example");
      m_webSocket.open(request);
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            manordheim Mårten Nordheim
            cndt03k1 Riccardo Canducci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes