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

Creating QSslSocket when schannel is in use takes too long time

    XMLWordPrintable

Details

    • Windows
    • 838714136 (dev), 6df9074a1 (6.7), 7de26479e (6.6), 070793083 (tqtc/lts-6.5)
    • Foundation PM Staging

    Description

      A simple reproducer:

      QElapsedTimer timer;
      timer.start();
      
      QSslSocket s;
      
      qDebug() << timer.elapsed();
      

      According to the original reporter, timer reports ~500ms and the reason is the fact that

      QWinTimeZonePrivate::availableTimeZoneIds()
      

      is being called ~5000 times.

      There has been a patch here:
      https://codereview.qt-project.org/c/qt/qtbase/+/518217
      The original reporter tested it, and reported back that the patch only fixes release build of application. The debug build still suffers from long instantiation time.

      On the other hand, OpenSSL seems to work fine. And it can be a schannel issue.

      Attachments

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

        Activity

          People

            manordheim MÃ¥rten Nordheim
            luqiaochen Luqiao Chen
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes