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

QSslSocket should go into UnencryptedMode after setSocketDescriptor is called

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.6.1
    • Network: SSL
    • None

      With QTcpSocket and QLocalSocket one can reuse these objects by just calling setSocketDescriptor again, which proved to be faster than creating the objects on high traffic servers (case of Cutelyst's), but QSslSocket::startServerEncryption() fails because it's internal mode is not UnencryptedMode anymore thus leading to a warning without any API feedback to know that we failed to start the encryption.

      IMO the proper solution would be to reset this value when setSocketDescriptor is called.

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

            cnn Qt Core & Network
            dantti Daniel Nicoletti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes