summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qabstractsocket_p.h
diff options
context:
space:
mode:
authorMårten Nordheim <marten.nordheim@qt.io>2024-02-22 14:56:19 +0100
committerMårten Nordheim <marten.nordheim@qt.io>2024-03-02 22:57:09 +0100
commitb2ff0c2dc25f640a31fa170dd7cd8964bbcd51d6 (patch)
tree28500a4495397cf5be5c2d98f4487a32f9f0d2b1 /src/network/socket/qabstractsocket_p.h
parentde0230467c1f658232b101a99e62d68992173592 (diff)
UDP: don't disable read notification unless we have a datagram
The current logic that we will disable the read notification if we have any data at all doesn't make sense for users who use the receiveDatagram functionality, since they will not make any calls that trigger the read notifier to be re-enabled unless there is a datagram ready for us to hand back. Fixes: QTBUG-105871 Pick-to: 6.7 6.6 6.5 Change-Id: I0a1f1f8babb037d923d1124c2603b1cb466cfe18 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/socket/qabstractsocket_p.h')
-rw-r--r--src/network/socket/qabstractsocket_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/socket/qabstractsocket_p.h b/src/network/socket/qabstractsocket_p.h
index 98d74dcfd4..cc5f53179c 100644
--- a/src/network/socket/qabstractsocket_p.h
+++ b/src/network/socket/qabstractsocket_p.h
@@ -110,6 +110,7 @@ public:
qint64 readBufferMaxSize = 0;
bool isBuffered = false;
bool hasPendingData = false;
+ bool hasPendingDatagram = false;
QTimer *connectTimer = nullptr;