Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.0.1
-
None
-
80af20429715228a69122ee824a64108dfb53809
Description
QNativeSocketEngine::bytesAvailable uses Q_CHECK_NOT_STATE to verify the state, but returns false (interpreted as zero bytes available) instead of -1 (error) on errors. This can adversely affect the behavior on "Host unreachable" disconnects.