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

Bound QUdpSocket leads into high CPU usage with waitForReadyRead(int msecs)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.6.1
    • 5.6.0
    • Network: Sockets
    • None
    • 21b3e2265a06a6bf45ef63f7da3b9dc609c47c31

      https://github.com/qtproject/qtbase/commit/0db793fe4117c243361d4b8eff4fb5ab87f66020#commitcomment-17011081

      In case of a bound QUDPSocket waitForReadyRead(int msecs) returns immediately although there are no datagrams received and the timeout is not elapsed. In Qt 5.5 the method blocked when no datagrams were received for msecs milliseconds. Developers who relied on the timeout will experience a high CPU usage.

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

            alex1973tr Alex Trotsenko
            qtproject.tr4 Thorsten Hojnacki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes