net/socket.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit c48bd4e914f3a5f378f08ba028bcfc14aa54b221 Author: Ashod Nakashian <[email protected]> Date: Sun Feb 19 12:30:49 2017 -0500 nb: handle as many incoming messages as ready Change-Id: I082f4a8b86b1f1827e4fba6927248bc6bd2cb1fa Reviewed-on: https://gerrit.libreoffice.org/34443 Reviewed-by: Ashod Nakashian <[email protected]> Tested-by: Ashod Nakashian <[email protected]> diff --git a/net/socket.hpp b/net/socket.hpp index 1a6c4a1..6f7686b 100644 --- a/net/socket.hpp +++ b/net/socket.hpp @@ -300,10 +300,11 @@ public: // FIXME: need to close input, but not output (?) if (events & POLLIN) { - const size_t oldSize = _inBuffer.size(); + size_t oldSize = _inBuffer.size(); closeSocket = !readIncomingData(); - if (oldSize != _inBuffer.size()) + while (oldSize != _inBuffer.size()) { + oldSize = _inBuffer.size(); handleIncomingMessage(); } } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
