summaryrefslogtreecommitdiffstats
path: root/src/plugins/tls/openssl/qtlsbackend_openssl.cpp
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2021-09-17 12:32:14 +0200
committerDimitrios Apostolou <jimis@qt.io>2021-09-17 16:48:44 +0200
commitc7e0a1a966c143485eb32211aaabf62cd8dbf6ca (patch)
treec9261e2cb59162fcbbcb85ea84bcdc8276b58245 /src/plugins/tls/openssl/qtlsbackend_openssl.cpp
parentc70bb357cce860385ea8c61b337f24165fa04db6 (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