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

QSerialPort::waitForReadyRead(-1) timeouts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • 5.2.0
    • 5.1.1
    • Serial Port
    • None
    • Windows 7 64bit
    • 728f3e7383ac6f7364126bf55684d51dec51cd69

    Description

      QIODevice::waitForReadyRead() specifies that the function should not timeout when the timeout argument is -1. However, QSerialPort::waitForReadyRead does timeout. From a quick look in qserialport_win.cpp it seems that the conversion of the timeout argument to WaitForMultipleObjects (line 956) is not done correctly. It should be

      msecs == -1 ? INFINITE : msecs instead of qMax(msecs, 0)

      Attachments

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

        Activity

          People

            lpapp Laszlo Papp
            biasmv Marco Biasini
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes