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

[QtNetwork] std::chrono support for transferTimeout values

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: P2: Important 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

      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.

        For Gerrit Dashboard: QTBUG-118714
        # Subject Branch Project Status CR V

            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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes