Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.3.0 Alpha, 5.5.0
-
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
Issue Links
- is required for
-
QTBUG-37065 Issues to be fixed before 5.3.0 RC1 release
- Closed
For Gerrit Dashboard: QTBUG-37489 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
84069,3 | QAbstractSocket: enable read notification for unbuffered sockets | release | qt/qtbase | Status: MERGED | +2 | 0 |