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

HTTP2 channel reconnects silently without "user space" notification

    XMLWordPrintable

Details

    • dbfa374 d1a22bd29856807805fa56608d2953c072df0cf1 (qt/qtbase/5.13) dbfa374a8610948f6e03ea1b3f3bc2905ce05be0 (qt/qtbase/5.13) 543769666f18f79bd6ebd6119a39834aafc2b0df (qt/qtbase/5.15)

    Description

      Hi,

      I faced issue with Qt HTTP2 implementation. If channel is disconnected while communication from server, in HTTP2 handler there is automatical channel recovery mechanism. This idea pretty solid, but the problem is that userspace doesn't see this and cannot re-send data to server, for example. As simple solution I suggest to trigger QNetworkReply::error once with QNetworkReply::TemporaryNetworkFailureError, when connection is broken. It will give possibility for library users to re-send required data to server.

       

      Steps:

      1. Start server from attached tarball
      2. Start client
      3. Observe messages conversation
      4. Stop server
      5. Start server

      Oserved behaivor:

      4. Client silently reconnect to server but doesn't send any request

      Expected behaivor:

      4. Error occured on client side

       

      Attachments

        Activity

          People

            cnn Qt Core & Network
            semlanik Alexey Edelev
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: