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

[OAS] Investigate zlib compression/decompression support

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • None
    • Network

      The HttpRequest.{h,cpp}.mustache files contain code for compressing and decompressing data using zlib.

      This code is controlled by the {{#contentCompression}} flag, which is by default turned off.

      The scope of this task is to create new tests with enabled compression in the generator and make sure that everything builds and works correctly.

      This might require changes in CMakeLists.txt.mustache, and also in the code of HttpRequestWorker::compress() and HttpRequestWorker::decompress() methods.

      At first glance I can identify the following issues:

      • CMakeLists.txt tries to link to ${ZLIB_LIBRARIES}, but misses the call to FindZLIB().
      • The compression and decompression code uses int to represent the size of QByteArray. We need to change it to qsizetype and make sure that there's no overflow when working with > 2 GiB data.
      • ...

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

            ivan.solovev Ivan Solovev
            ivan.solovev Ivan Solovev
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes