diff options
| author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-09-25 13:23:46 +0200 |
|---|---|---|
| committer | Markus Goetz (Woboq GmbH) <markus@woboq.com> | 2015-11-05 08:40:57 +0000 |
| commit | 7aba75ffc52e5dce4b3ada12668611be2ad6787e (patch) | |
| tree | bea89e4b84b9bc3af82410a66de9e0e3977f3610 /src/widgets/doc/snippets/graphicsview.cpp | |
| parent | c69f75426d004d7cdadf51ea06238fef98493ec7 (diff) | |
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 0df5d079290b4c3b13e58e9397fabdc1dfdba96b)
Task-number: QTBUG-48326
Change-Id: I67d9ad36f7288c9c6bef51aa6253d7b187737601
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Reviewed-by: Markus Goetz (Woboq GmbH) <markus@woboq.com>
Diffstat (limited to 'src/widgets/doc/snippets/graphicsview.cpp')
0 files changed, 0 insertions, 0 deletions
