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

[QtNetwork] std::chrono support for transferTimeout values

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • 6.7.0 FF
    • None
    • Network
    • None
    • All
    • 8
    • 090991123 (dev)
    • Foundations Sprint 94, Foundations Sprint 95, Foundations Sprint 96, Foundations Sprint 97

    Description

      The QNetworkAccessManager and QNetworkRequest classes have setter-getters
      for 'transfer timeout' value. They use 'int' of milliseconds as the interface type.

      This task is about adding support for std::chrono::milliseconds support as a datatype.
      This means overloading the setTransferTimeout() setter, and introducing a new getter function as we can't overload based on the return type.

      Notably, as an aside, the QTimer doesn't currently support timeouts that are larger than 'int' of milliseconds. This means that the behavioural limitation remains (maximum timeout on an int32bit system is ~24 days).
      But nevertheless, adding std::chrono as an interface type provides users with more modern means of expressing time.

      Attachments

        Issue Links

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

          Activity

            People

              vuokko Juha Vuolle
              vuokko Juha Vuolle
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes