qt5base-lts/tests/auto/network/access/qhttpnetworkconnection
Ulf Hermann 0df5d07929 Don't let closed http sockets pass as valid connections
A QAbstractSocket can be close()'d at any time, independently of its
current connection state. being closed means that we cannot use it to
read or write data, but internally it might still have some data to
send or receive, for example to an http server. We can even get a
connected() signal after close()'ing the socket.

We need to catch this condition and mark any pending data not yet
written to the socket for resending.

Task-number: QTBUG-48326
Change-Id: I6f61c35f2c567f2a138f8cfe9ade7fd1ec039be6
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
2015-10-13 16:40:56 +00:00
..
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
qhttpnetworkconnection.pro QtNetwork tests: Remove DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 2014-02-25 16:47:13 +01:00
tst_qhttpnetworkconnection.cpp Don't let closed http sockets pass as valid connections 2015-10-13 16:40:56 +00:00