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

QNetworkAccessManager concurrent request limit not configurable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.5.0 FF, 6.5.0
    • 4.8.0, 4.8.1, 5.0.0
    • Network
    • None
    • 9329e4e8c (dev), 661544d49 (6.4), be05bb749 (dev), dfe03926b (dev)

      QNetworkAccessManager uses "6" concurrent requests on desktop platforms according to the documentation. There is no documentation on other platforms. It is my wish that we could query for the number of concurrent connections (max and active) as well as set it.

      My reasoning is as follows: when communicating with an embedded device, having any kind of concurrency is bad. I would like to limit it to 1 connnection at a time, which helps not overload the device. (memory buffers and scheduling) (For this device in paricular having multiple requests slows down all other requests such that X requests takes X *(1+Y) ) If I need to communicate to other non-embedded hosts then I should be able to use another QNetworkAccessManager instance.

      I've looked into subclassing QNetworkAccessManager, but I realized that I have to re-implement s good bit of what QNetworkAccessManager already does, so the best solution is to just tweak the existing class.

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

            mgoetz2 Markus Goetz (Woboq GmbH)
            scorp1us Jason Hihn
            Votes:
            10 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: