summaryrefslogtreecommitdiffstats
path: root/tests/auto/qsslcipher
diff options
context:
space:
mode:
authorJoão Abecasis <joao@trolltech.com>2010-04-15 17:02:34 (GMT)
committerJoão Abecasis <joao@trolltech.com>2010-04-19 11:48:06 (GMT)
commit02532ec80375c686503c4250c6ad6bb211515ec8 (patch)
treeea1907646aa373aad0b30dfef4bcde84f9775c7b /tests/auto/qsslcipher
parented91e29b23a07879a748c199902e3bf3fe6cd73f (diff)
downloadQt-02532ec80375c686503c4250c6ad6bb211515ec8.zip
Qt-02532ec80375c686503c4250c6ad6bb211515ec8.tar.gz
Qt-02532ec80375c686503c4250c6ad6bb211515ec8.tar.bz2
Fix QSslSocket::constructing autotest failure
The optimizations in d0645d1792e1cbdf417a923ea071975e4390fccd did not take into account 0-length reads, used in network programming to check connected state. By not returning early in the case where lastReadChunkSize == maxSize and maxSize == 0, we allow the underlying device to report error conditions on 0-length reads. This reverts commit aea71e2e02fa966842b094244bc3f5fc88f50f41, while still ensuring that QIODevice::read() returns -1 on a closed device. Reviewed-by: mread Reviewed-by: Thiago Macieira
Diffstat (limited to 'tests/auto/qsslcipher')
0 files changed, 0 insertions, 0 deletions