qt5base-lts/tests/auto/network/socket/qtcpsocket
Alex Trotsenko cddb344f3e QSslSocket: reset connection parameters on disconnect
Otherwise socketDescriptor(), localPort(), localAddress(), peerPort(),
peerAddress(), and peerName() remain uncleared until close() is called.

This could take place when the connection is closed by the remote
endpoint or the user calls disconnectFromHost(). After disconnecting,
connection parameters are no longer valid, while I/O device is still
opened and may have pending data for reading. Usually, the user reads
all incoming data and closes the device independently.

Change-Id: Ic898851c39137faf64019949910f0d94ebb79df7
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2016-07-05 19:21:06 +00:00
..
stressTest Updated license headers 2016-01-21 18:55:18 +00:00
test tst_QTcpSocket: Replace insignification on Windows by BLACKLIST. 2016-06-10 21:48:54 +00:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
BLACKLIST tst_QTcpSocket: Replace insignification on Windows by BLACKLIST. 2016-06-10 21:48:54 +00:00
qtcpsocket.pro fix usage of wince scope 2015-06-05 10:29:10 +00:00
tst_qtcpsocket.cpp QSslSocket: reset connection parameters on disconnect 2016-07-05 19:21:06 +00:00