qt5base-lts/tests/auto/network/socket/qtcpsocket
Mårten Nordheim 1eeab2d27f QSocks5SocketEngine: account for in-transit signal when waiting for read
When calling waitFor{ReadyRead,Disconnected} it will wait for data but
if the data is already received and the read notification has been
queued (and there's no more data coming in) it will return false.

By checking if a read notification has been queued and then handling
this we can easily take care of this scenario.

Fixes some flaky tests which missed the read data in waitForDisconnect
and similar.

Fixes: QTBUG-38385
Change-Id: Ic05d59883c1175783e56ff1822b6636c35aec874
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2019-07-02 16:05:15 +02:00
..
stressTest Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
test Merge remote-tracking branch 'origin/5.7' into dev 2016-06-21 08:39:41 +02:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
BLACKLIST Blacklist flaky cases 2018-02-09 18:45:23 +00:00
qtcpsocket.pro tst_QTcpSocket::suddenRemoteDisconnect - fix flakyness 2017-10-30 11:10:10 +00:00
tst_qtcpsocket.cpp QSocks5SocketEngine: account for in-transit signal when waiting for read 2019-07-02 16:05:15 +02:00