- 
    Bug 
- 
    Resolution: Done
- 
    P1: Critical 
- 
    5.12.3
- 
    None
- 
    Linux with OpenSSL 1.1, GCC 9.1
- 
        
- 
        e79b1dcdf542be3a20d5c21ea163ff857ed875bf d53b8b77bc8de236e148ef2652806015a9a87e2b
Test tst_QSslSocket::waitForMinusOne fails on my system (Linux with OpenSSL 1.1, GCC 9.1). It fails with all configurations (WithoutProxy etc), but here is the log from a run WithoutProxy:
QDEBUG : tst_QSslSocket::initTestCase() Using SSL library OpenSSL 1.1.1b 26 Feb 2019 (269488175) PASS : tst_QSslSocket::initTestCase() FAIL! : tst_QSslSocket::waitForMinusOne(WithoutProxy) 'server.dataReadSemaphore.tryAcquire(1, 2000)' returned FALSE. () Loc: [/home/qtjimis/dist/src/qt/qtbase/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp(2247)] FAIL! : tst_QSslSocket::waitForMinusOne(WithoutProxy) 'ok' returned FALSE. () Loc: [/home/qtjimis/dist/src/qt/qtbase/tests/auto/network/ssl/qsslsocket/tst_qsslsocket.cpp(2140)] PASS : tst_QSslSocket::cleanupTestCase() Totals: 2 passed, 2 failed, 0 skipped, 0 blacklisted, 2230ms
EDIT: The problem seems to be that waitForEncrypted() behaves differently with OpenSSL 1.1 and now fills the data buffer, causing the subsequent waitForReadyRead() to timeout waiting for data that never comes.