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

QNetworkReply::setReadBufferSize ignored since 4.8.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 4.8.x, 5.0.0
    • 4.8.0, 4.8.1
    • Network
    • None
    • Linux (Ubuntu/Kubuntu 11.10)
    • a050bba2f0151beb508fa7ab6f58c25c4e92bfb0, a93b7025c71f8c4f81ba3b516a65ee41e6ef419c

      Please see attached example of QNetworkReply::setReadBufferSize behavour.

      I start this application from command line using some URL as a first parameter. I expect QNetworkReply::setReadBufferSize will limit buffer usage and I never see _reply->bytesAvailable() more than QNetworkReply::setReadBufferSize value (1048576 in this example).

      It works excactly that way, when the example compiled with Qt4.7.4. When it compled with Qt4.8.0 or 4.8.1 I see some huge number instead which depends only on network bandwidth.

        1. readtest.cpp
          0.7 kB
        2. readtest.h
          0.3 kB
        3. readtest.pro
          0.1 kB
        For Gerrit Dashboard: QTBUG-25327
        # Subject Branch Project Status CR V

            xcm Martin Petersson (Inactive)
            alrez Alexander Rezinsky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes