diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2018-05-08 12:35:46 +0200 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2018-07-12 09:16:25 +0000 |
commit | 86632bd377e9809a6670ee069b45bfb59a07d0fa (patch) | |
tree | d6a097ad8d1df19aad6153dde42a1b27af84bac5 /examples | |
parent | e40f23f098a1e79c22df611b6312317582b95a3a (diff) |
QSslSocketBackendPrivate - avoid recursion while handing errors
The logic seems to be simple - if client code on error signal
tries to close TLS socket and this socket has buffered data,
it calls 'flush' and 'transmit' or even 'startHandshake' as
a result, which in turn will set and emit error again. To auto-
test this, we initiate a handshake with pre-shared key hint
on a server side and both client/server sockets incorrectly
configured (missing PSK signals). We also do early write
into the client socket to make sure it has some data
buffered by the moment we call 'close'.
Task-number: QTBUG-68089
Task-number: QTBUG-56476
Change-Id: I6ba6435bd572ad85d9209c4c81774a397081b34f
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions