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

QSSLSocket read fail on iOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.5.1, 5.6.0
    • Fix Version/s: 5.6.2, 5.7.1
    • Component/s: Network: SSL
    • Labels:
    • Environment:
      Mac OS X Il Capitain, target: iphonesimulator
    • Platform/s:
      iOS/tvOS/watchOS
    • Commits:
      faeaddc1b92f1000a5a1d9d7cdea9276bdfefe26

      Description

      My app (iOS 9.x simulator) connects to my server (Win 64bit).

      Both are written in Qt and they communicate over QSslSocket.
      On Desktop it works perfect.

      Running the app on the device simulator the QSslSocket (client side) emits error(QAbstractSocket::SocketError) with the following:

      Socket state: 1
      Socket state: 2
      Socket state: 3
      Socket state: 6
      Socket state: 0
      QAbstractSocket::SocketError(20)
      "SSLRead failed: -50"

      I found this error in Apple API error list:
      https://www.osstatus.com/search/results?platform=all&framework=all&search=-50

      it says, that:
      Security
      SecBase.h errSecParam
      -50 One or more parameters passed to the function were not valid.

      The strange thing is that is that everything seems to work with this error on server side.

        Attachments

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

          Activity

            People

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            cdsmika Tseluyko Dmitriy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes