Commit graph

466 commits

Author SHA1 Message Date
Tor Lillqvist
bf985624f1 Handle LOK_CALLBACK_INVALIDATE_TILES in the server too
Remove any intersecting cached tiles. It is the parent process that handles
the tile cache, so it must look for invalidatetiles: messages, too, before
passing them on to the client. To know for which part we should remove tiles,
add an "ephemeral" curpart: message that the child process sends to the parent
process before the invalidatetils: message.
2015-05-28 18:48:51 +03:00
Tor Lillqvist
1d75eacd6a Add an invalidatetiles message from client to server
Mainly as a debugging aid to make it easier to check the tile cache invalidation
code, but might be useful for real, too.
2015-05-28 18:48:51 +03:00
Tor Lillqvist
5d9f5e715a Sort the messages in the sections 2015-05-28 18:48:51 +03:00
Mihai Varga
2fa440c18f Status indicator control 2015-05-28 18:43:29 +03:00
Mihai Varga
1d34f8f0a8 Set pointer cursor in viewmode 2015-05-28 17:43:53 +03:00
Mihai Varga
d8dd709377 setpart command handler 2015-05-28 17:22:45 +03:00
Tor Lillqvist
f6a00edbee Use shared_ptr to the WebSockets for increased robustness
Why did I wait so long to do this? This is obviously the right thing to do, I
hope, and has a very significant impact on the robustness of the server...
2015-05-28 16:46:37 +03:00
Tor Lillqvist
295bc3c42f Add some variation to the time each doc is tested 2015-05-28 16:46:37 +03:00
Tor Lillqvist
7245c795d2 Add one more line of (ifdeffed-out) debug ouput 2015-05-28 16:46:37 +03:00
Tor Lillqvist
73273eb027 Also let the nextmessage: from a child process be forwarded to the client
The loadtest program needs it as it, too, uses Poco, which currently does not
have an API to receive an arbitrarily large WebSocket message.
2015-05-28 16:46:37 +03:00
Tor Lillqvist
d0dbc5e1dd Send a nextmessage: message also preceding a tile: message from the cache 2015-05-28 16:46:37 +03:00
Tor Lillqvist
09b261d57b Handle LOK_CALLBACK_DOCUMENT_SIZE_CHANGED even better
Just call the getStatus() function directly in the child process, which will
always cause a complete status: message to be sent to the client. No
documentsizechanged: messages now sent to the client at all.
2015-05-28 16:46:37 +03:00
Henry Castro
e974f7c98c Fixed EMPTY invalidattiles 2015-05-28 09:36:52 -04:00
Tor Lillqvist
d6bd6ca140 Handle nextmessage: here, too
Otherwise loadtest crashes on big tiles.
2015-05-28 13:23:28 +03:00
Tor Lillqvist
13645eb769 There should be whitespace after the message keyword and colon 2015-05-28 12:59:11 +03:00
Tor Lillqvist
cedee8f1a9 Log the input to MasterProcessSession::handleInput() earlier 2015-05-28 12:58:08 +03:00
Tor Lillqvist
0092414470 Handle LOK_CALLBACK_DOCUMENT_SIZE_CHANGED callbacks more cleverly
When a child process sends a documentsizechanged: message to the parent, to be
forwarded to the client, parse it and update a cached status of the doucment,
if available, and send an updated status: message to the client instead.

Note that clients should not rely on getting only status: messages and never
documentsizechanged: messages, though; the cache might be cleaned at any time
even while the server is running. If there is no cached status of the document
to update and re-use, we have to forward the documentsizechanged: message as
such to the client.
2015-05-28 12:53:14 +03:00
Tor Lillqvist
6968bd1c3c This should obviously be noarch 2015-05-28 11:19:20 +03:00
Mihai Varga
f999c337b9 Better differentiate commands, status vs statusindicator 2015-05-28 11:02:12 +03:00
Tor Lillqvist
8166e9494f Post-release bump to 1.0.23 2015-05-28 10:35:07 +03:00
Tor Lillqvist
5150db06b9 Adapt to work with either 5.0 or 5.1 packages from TDF 2015-05-28 10:31:39 +03:00
Tor Lillqvist
fd7f83df92 Update from master 2015-05-28 10:27:43 +03:00
Tor Lillqvist
84819b6f0c Improve error handling 2015-05-27 21:44:39 +03:00
Miklos Vajna
d8d054fa47 LOOLSession: PAGE_COUNT -> DOCUMENT_SIZE 2015-05-27 17:34:10 +02:00
Miklos Vajna
36c94140ef loleaflet: document ~/.npmrc prefix setting 2015-05-27 16:09:04 +02:00
Tor Lillqvist
d54acdd6fb Post-release bump to 1.0.21 2015-05-27 16:48:32 +03:00
Tor Lillqvist
3747129da5 Bump version to 1.0.20 2015-05-27 16:47:50 +03:00
Tor Lillqvist
beb321d142 Revert attempts at sanity 2015-05-27 16:33:49 +03:00
Tor Lillqvist
6b91320f69 Intermediate non-working attempt at sanity 2015-05-27 16:29:57 +03:00
Tor Lillqvist
2e6719faaf Tweak where the systemplate and child-root directories are put
They must be on the same file system where LO is installed, and the TDF
tarballs puts that in /opt, and on some Linuxes in default configuration /opt
is on a different file system from /home, so we should not really use
/home/lool.
2015-05-27 16:28:36 +03:00
Tor Lillqvist
86b846d137 Accept URI on the command line 2015-05-27 16:27:52 +03:00
Tor Lillqvist
05c6505325 Post-release bump to 1.0.19 2015-05-27 15:13:25 +03:00
Tor Lillqvist
4109d1cb5d Avoid "cannot create directory: File exists" issues 2015-05-27 15:12:21 +03:00
Tor Lillqvist
85e98d5231 Don't put superfluous stuff in the tarball, and bump version to 1.0.2 2015-05-27 14:58:41 +03:00
Tor Lillqvist
7e5f0afcee Post-release bump to 1.0.17 2015-05-27 14:38:41 +03:00
Tor Lillqvist
b3ea72955d Update from LO master 2015-05-27 14:06:50 +03:00
Miklos Vajna
6453f130c0 LOOLSession: handle LOK_CALLBACK_SET_PART 2015-05-27 11:36:21 +02:00
Henry Castro
6742cd8046 Capture invalidatetiles when keys are pressed
There is a problem with fade and opacity. they
are set to 0.
2015-05-26 23:51:52 -04:00
Henry Castro
9287074b75 Added cursor visible and invalidate cursor 2015-05-26 20:52:35 -04:00
Henry Castro
8d094fbf3f Added keypress function to send keys 2015-05-26 20:37:11 -04:00
Mihai Varga
bd642c3d37 Make the view/edit text in the control unselectable 2015-05-26 20:56:27 +03:00
Mihai Varga
22232e070f Dragging will be handled in the js code 2015-05-26 20:56:27 +03:00
Mihai Varga
77b8e0d126 Edit/View switching handler 2015-05-26 20:56:27 +03:00
Mihai Varga
7b79f0edd5 Control for switching between viewing and editing mode 2015-05-26 20:56:27 +03:00
Jan Holesovsky
029a41ba81 Fix non-debug build. 2015-05-26 10:11:06 +02:00
Jan Holesovsky
bc02be9812 Don't cycle the parts, stop at 0 / max. 2015-05-25 18:43:18 +02:00
Mihai Varga
29d4296d12 Disable prev/next part buttons for the first/last part 2015-05-25 17:52:36 +03:00
Mihai Varga
57cb4fe243 Prune tiles after switching parts 2015-05-25 17:36:18 +03:00
Mihai Varga
bcdf048d6d Merge adjacent selection rectangles into a single polygon
+ the document is scrolled to the average center of the rectangles
if that is out of the viewing area
2015-05-25 16:54:29 +03:00
Henry Castro
d33d1afcf3 Added missing rectangle to invalidate cursor. 2015-05-25 00:40:08 -04:00