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

Using http/2 for large files fails, peak memory usage during download equals the filesize, causing client OOM error's

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.11.1
    • 5.10.1, 5.11.0
    • Network
    • None
    • Linux as well as Android.

       
    • ee47999333dde1d38b73d04e142e05f06f8c56ed

    Description

      The attached demo code downloads a 1GB file over http/2. For this, it uses ~ 1GB of memory during the download.

      When not using http/2 (by commenting out the HTTP2AllowedAttribute), peak rss stays comfortably at ~28 MB.

      Obviously, this causes serious issues on clients with limited memory, which covers a lot of Android devices.

      Please let me know in the comments when I can remove the 1GB demo file.

      Attachments

        1. download.pro
          0.0 kB
        2. main.cpp
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            jirauser24743 user-678dd (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes