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

QUdpSocket works in 5.4, stopped working in 5.5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.3.0 Alpha, 5.5.0
    • Fix Version/s: 5.3.0 RC1
    • Component/s: Network: Sockets
    • Labels:
      None
    • Environment:
      Windows 7-64bit.
    • Commits:
      d29a750c0cc423bf65171338eeaa767f272d4ef0

      Description

      Update: Under Qt 5.5.0 release, this bug has reappeared. Added UdpTest2.zip.

      Under Qt 5.3.0-Alpha, my QUdpSocket implementation no longer receives readyRead signal. I can still see packets via Wireshark, but no readyRead is received.

      Did a diff on qabstractsocket.cpp 5.2.1/5.3.0, which revealed a change at lines 751/752.
      5.2.1:
      if (!hasData && socketEngine)
      socketEngine->setReadNotificationEnabled(true);
      5.3.0-Alpha:
      if (isBuffered && socketEngine)
      socketEngine->setReadNotificationEnabled(readBufferMaxSize == 0 || readBufferMaxSize > q->bytesAvailable());

      Changing code back from 5.3.0-Alpha to 5.2.1 fixes it.

        Attachments

        1. UdpTest.zip
          2 kB
        2. UdpTest2.zip
          4 kB

          Issue Links

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

            Activity

              People

              Assignee:
              peter-har Peter Hartmann
              Reporter:
              tnse Thomas A.O. Steen
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes