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

Making a HTTPS request using QNetworkAccessManager hangs the application on Symbian

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1: Critical P1: Critical
    • 4.7.1
    • 4.7.0
    • Network, Network: SSL
    • None

      Running the code below renders the application completely unresponsive (can't be killed with Symbian task switcher, battery indicator stops animating, doesn't redraw, etc). The requestComplete, readyRead and sslErrors signals are never emitted. Works fine on Windows. Before hanging following lines appear in the debug output:

      StartServer
      StartServer 2
      StartServer 3
      StartServer 4 0
      connect1 0
      connect1 0

      void MainWindow::on_pushButton_clicked()
      {
          QNetworkRequest r;
          r.setUrl(QUrl("https://msp.f-secure.com/web-test/common/test.html"));
          QNetworkReply* reply = m_nam.get(r);
          connect(reply, SIGNAL(finished()), this, SLOT(requestComplete()));
      }
      
      void MainWindow::requestComplete()
      {
          QNetworkReply* r = (QNetworkReply*) sender();
          qDebug() << r->errorString();
          qDebug() << r->readAll();
          r->deleteLater();
      }
      

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

            shausman Simon Hausmann
            juturune Juha Turunen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes