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

QNetworkAccessManager incorrectly shuts down localhost connections

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.7.4
    • None
    • Meego/Harmattan

    Description

      steps to reproduce:

      1. start localhost http server, streaming data.
      2. start client connecting to localhost server, receiving data through QNetworkAccessManager/QNetworkReply
      3. change to wifi
      4. disconnect from wifi

      expected result:
      wifi connection or lack thereof does not influence localhost connections
      OR
      if connection absolutely has to be reset, finish or error signals should be sent from the QNetworkReply so client can reconnect

      actual result:

      • server receives SIGPIPE (socket closed remotely)
      • client receives networksessionstate change signal
      • QAbstractSocket is closed by QNetworkAccessManagerPrivate::_q_networkSessionStateChanged(QNetworkSession::State state):
        if (state == QNetworkSession::Disconnected)
        objectCache.clear();

      Attachments

        1. QNAM_localhost.7z
          4 kB
          Florian Hänel

        Issue Links

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

          Activity

            People

              cristiano cristiano di flora
              florian.haenel Florian Hänel
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes