Prevent TCP sockets to consume too much memory. This fixes #4033.
Prevent TCP sockets to consume too much memory. This fixes #4033.

Previously, TCP sockets read data using Qt's waitForReadyRead()
method every time before read(). This made memory use explode in
some cases, as explained in the ticket. Now, presence of previously
bufferized data is checked with bytesAvailable(), preventing
unnecessary waitForReadyRead() calls.

git-svn-id: a49aa41e49c69a6ab6ef43f172843a2fef6cb475@1472 7c7d615a-03b3-410d-a316-1135b1bd9499

centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker,centreon/centreon-broker