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

QUdpSocket works in 5.4, stopped working in 5.5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0 RC1
    • 5.3.0 Alpha, 5.5.0
    • Network: Sockets
    • None
    • Windows 7-64bit.
    • 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

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

          Activity

            People

              peter-har Peter Hartmann
              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