qt5base-lts/tests/auto/network
Ulf Hermann 7aba75ffc5 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.

(cherry picked from commit 0df5d07929)
Task-number: QTBUG-48326
Change-Id: I67d9ad36f7288c9c6bef51aa6253d7b187737601
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Reviewed-by: Markus Goetz (Woboq GmbH) <markus@woboq.com>
2015-11-05 08:40:57 +00:00
..
access Don't let closed http sockets pass as valid connections 2015-11-05 08:40:57 +00:00
bearer Skip instead of entirely excluding tests with disabled features 2015-03-16 09:34:15 +00:00
kernel fix usage of wince scope 2015-06-05 10:29:10 +00:00
socket QWindowsPipeReader: fix occasional "Unknown error 995" 2015-11-02 12:38:50 +00:00
ssl ssl: add test certificates with DSA and EC keys 2015-07-30 11:31:40 +00:00
network.pro Re-enable network tests on Mac OS. 2012-04-24 16:06:28 +02:00