loolwsd/test/httpwstest.cpp |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit 2dde26c2ffe185f1a7661418e11b64d65a7659cc
Author: Tor Lillqvist <t...@collabora.com>
Date:   Thu Apr 28 09:23:30 2016 +0300

    Add rant

diff --git a/loolwsd/test/httpwstest.cpp b/loolwsd/test/httpwstest.cpp
index 04093c2..542fbf8 100644
--- a/loolwsd/test/httpwstest.cpp
+++ b/loolwsd/test/httpwstest.cpp
@@ -1329,6 +1329,18 @@ void HTTPWSTest::requestTiles(Poco::Net::WebSocket& 
socket, const int part, cons
 
     rows = docHeight / tileSize;
     cols = docWidth / tileSize;
+
+    // Note: this code tests tile requests in the wrong way.
+
+    // This code does NOT match what was the idea how the LOOL protocol 
should/could be used. The
+    // intent was never that the protocol would need to be, or should be, used 
in a strict
+    // request/reply fashion. If a client needs n tiles, it should just send 
the requests, one after
+    // another. There is no need to do n roundtrips. A client should all the 
time be reading
+    // incoming messages, and handle incoming tiles as appropriate. There 
should be no expectation
+    // that tiles arrive at the client in the same order that they were 
requested.
+
+    // But, whatever.
+
     for (int itRow = 0; itRow < rows; ++itRow)
     {
         for (int itCol = 0; itCol < cols; ++itCol)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to