diff options
| author | Dimitrios Apostolou <jimis@qt.io> | 2021-09-17 12:32:14 +0200 |
|---|---|---|
| committer | Dimitrios Apostolou <jimis@qt.io> | 2021-09-17 16:48:44 +0200 |
| commit | c7e0a1a966c143485eb32211aaabf62cd8dbf6ca (patch) | |
| tree | c9261e2cb59162fcbbcb85ea84bcdc8276b58245 /src/plugins/tls/openssl/qtlsbackend_openssl.cpp | |
| parent | c70bb357cce860385ea8c61b337f24165fa04db6 (diff) | |
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>
Diffstat (limited to 'src/plugins/tls/openssl/qtlsbackend_openssl.cpp')
0 files changed, 0 insertions, 0 deletions
