Details
Description
My host has many ip addresses and need to send packets from correct ip, so where is need to use QTcpSocket bind.
If remote host reject connection - qt hangs in infinity loop in QIODevicePrivateLinearBuffer::makeSpace (with newCapacity == 0)
while (newCapacity < required)
newCapacity *= 2;
Simple example attached.
Attachments
Issue Links
- is duplicated by
-
QTBUG-51343 Sockets: Application may hang on exit if bytesAvailable is -1 in QAbstractSocketPrivate::readFromSocket()
- Closed
For Gerrit Dashboard: QTBUG-50124 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
144687,2 | QAbstractSocket: do not enable read notifications on TCP in bind() | 5.5 | qt/qtbase | Status: MERGED | +2 | 0 |