qt5base-lts/tests/auto/network/socket/qsocks5socketengine
Dimitrios Apostolou c7e0a1a966 Fix flaky test timing out sometimes while waiting for data
The test used to hang on waitForRead(), sometimes, which underneath
involve a poll()+read() syscall pair.
When this happened, the IMAP data came together with the proxy data on a
previous poll()+read() call and the proxy code had already consumed it.

We now wait for data only if data is not already available.

Fixes: QTBUG-96345
Pick-to: 6.2
Change-Id: I084f5d1268a5091ea614fcec91c8d356dcb90d9f
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2021-09-17 16:48:44 +02:00
..
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
BLACKLIST Extend test blacklisting from Ubuntu 18.04 to 20.04 2020-09-03 14:30:04 +02:00
CMakeLists.txt CMake: Remove the usage of QT_SOURCE_TREE from tests 2021-07-12 18:56:14 +02:00
tst_qsocks5socketengine.cpp Fix flaky test timing out sometimes while waiting for data 2021-09-17 16:48:44 +02:00