QAbstractSocket: Enable readNotifier on read from buffer
authorMartin Petersson <Martin.Petersson@nokia.com>
Mon, 4 Jun 2012 14:34:13 +0000 (16:34 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 26 Jun 2012 09:32:21 +0000 (11:32 +0200)
commit1ce203d05a952f039105d30968daf2eacae66be8
tree3db7e1740e84550f4e7e2fb77ffcf8072d4af74d
parentbf6897edb01c0d46fda5195e36bb529dbbf7e5dc
QAbstractSocket: Enable readNotifier on read from buffer

This is needed for the QSslSocket. When we read on that socket we will
only read from the QIODevice buffer to get the unencrypted data.
So when the readNotifier has been turned off on the plainsocket there
is nothing to trigger it to be turned on again.

This will add a readData with zero size when we have read everything
from the buffer. This is so that we get a call into the socket to
check if the readNotifier should be turned on again.

Change-Id: I3b63e33de007db823e964480903186eb1b8caac2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/corelib/io/qfiledevice.cpp
src/corelib/io/qiodevice.cpp
src/corelib/io/qprocess.cpp
src/network/socket/qabstractsocket.cpp
src/network/socket/qlocalsocket_win.cpp