Tor Lillqvist
27a680457e
Pre-spawn a new child when we take one into use
2015-04-22 21:45:57 +03:00
Tor Lillqvist
1b32383875
Improve help messages
2015-04-22 21:45:47 +03:00
Tor Lillqvist
b760359bda
Terminology change: s/fork/spawn
...
We aren't doing any fork-but-not-exec trick anyway, just a straightforward
start of a child process.
2015-04-22 21:45:31 +03:00
Tor Lillqvist
a2e2102ad1
Call dispatchChild() only if needed
2015-04-22 21:45:22 +03:00
Tor Lillqvist
c33d3a3aae
Add a couple of items
2015-04-22 21:45:06 +03:00
Tor Lillqvist
acbad93ac7
Update README
2015-04-22 21:44:53 +03:00
Tor Lillqvist
d513536cfe
Must seed the RNG explicitly
...
Otherwise it uses a timestamp with one-second granularity as seed, and thus
most of the child processes pre-spawned at start will use the same seed, which
causes breakage.
2015-04-22 21:44:42 +03:00
Tor Lillqvist
3abb6d0307
Now the chroot etc re-work is getting closer to working
...
Works now for the trivial 'connect' test program. Still need to add
pre-spawning of a new child process as soon as an existing one from the pool
has been taking into use. And need to test with the actual JS client.
2015-04-22 21:44:17 +03:00
Tor Lillqvist
8800dd46e1
Fix typo and bin leftover FOO debug output
2015-04-22 21:43:55 +03:00
Tor Lillqvist
652580a761
Another intermediate commit, code still in a non-working state
2015-04-22 21:43:44 +03:00
Tor Lillqvist
a4480e2a8e
Add "sleep <n>" pseudo-request
2015-04-22 21:43:32 +03:00
Tor Lillqvist
0a60ea9dcc
Bump Emacs fill-column to 100
...
The default 70 is so last century.
2015-04-22 21:43:11 +03:00
Tor Lillqvist
7f50f06bf4
Add some comments
2015-04-22 21:42:47 +03:00
Tor Lillqvist
4c7b5a39e3
master LibreOffice no longer does the "restart required" thing when used from LOKit
2015-04-22 21:42:28 +03:00
Tor Lillqvist
f9d93ea57c
Work in progress: "pre-forking", chroot, etc. Non-working state
...
Lots of changes to the server code, LOOLWSD and LOOLSession mainly. This is an
intermediate commit.
2015-04-22 21:42:17 +03:00
Tor Lillqvist
defbb6a809
Remove write of superfluous empty line
2015-04-22 21:42:09 +03:00
Tor Lillqvist
6950f7d841
Adapt to changed LibreOfficeKitDocument::postUnoCommand() API
2015-04-22 21:41:49 +03:00
Jan Holesovsky
44553f82c0
loolwsd: Don't even start when the cache dir is not available.
2015-04-21 15:51:28 +02:00
Jan Holesovsky
4715df9587
Reformatted loolwsd README.
2015-04-21 12:48:17 +02:00
Tor Lillqvist
c72f197e71
Handle LOK_CALLBACK_STATE_CHANGED
2015-04-14 14:51:36 +03:00
Tor Lillqvist
32ec786180
Update
2015-04-14 12:54:41 +03:00
Mihai Varga
7d66119532
Command type handler for selectText, selectGraphic, key, mouse
2015-04-13 20:42:44 +03:00
Tor Lillqvist
803ace146b
Some compilers seem very picky about ignoring return values
2015-04-10 12:51:42 +03:00
Tor Lillqvist
e6ddb042cd
WaE: ignoring return value
2015-04-10 12:40:13 +03:00
Tor Lillqvist
bf709edf08
Adapt for older libpng
2015-04-10 12:39:12 +03:00
Tor Lillqvist
aedea4229f
Call LibreOfficeKitDocument::initializeForRendering()
2015-04-10 12:21:28 +03:00
Tor Lillqvist
06d98ec0b7
This is C++
2015-04-10 01:25:48 +03:00
Michael Meeks
abec49b4bc
memcpy in string.h
2015-04-09 14:38:20 +01:00
Tor Lillqvist
ceae121b16
Can remove this, too
2015-03-28 13:58:15 +02:00
Tor Lillqvist
6d9f298ee9
Prefer C++ std headers
2015-03-28 13:57:10 +02:00
Tor Lillqvist
41f41f7af5
Have lokitclient display tiles using ImageMagick's 'display' if available
...
Refactor the PNG encoding of a pixmap out to Util.
2015-03-28 13:57:03 +02:00
Tor Lillqvist
c5a8104c4f
Add a new minimal non-GUI LOKit test program
...
For easier debugging of the LO code invoked through LibreOfficeKit, with is no
GUI stuff complicating debugging.
2015-03-28 13:56:03 +02:00
Tor Lillqvist
56f3678b36
Add a separate include file for some helper functions
2015-03-28 13:22:15 +02:00
Tor Lillqvist
7cb0449b8e
More hacking
2015-03-27 18:25:06 +02:00
Tor Lillqvist
6e36de4534
For debugging, sleep a bit before initialising LOKit if requested
...
Set the SLEEPFORDEBUGGER environment variable to the number of seconds a child
process should sleep before calling lok_init(), so that you have time to
attach the process in a debugger.
2015-03-27 18:23:27 +02:00
Tor Lillqvist
cec37456ef
Set no receive timeout
2015-03-27 16:53:51 +02:00
Tor Lillqvist
58f00ca165
Remove the dead "migratory socket" stuff
2015-03-27 16:26:33 +02:00
Tor Lillqvist
bb162a6ba7
Add trivial test program for sending commands to the LOOL server
2015-03-27 16:23:20 +02:00
Tor Lillqvist
022592e65c
Do remove also the first level of subdirectories
2015-03-27 14:52:30 +02:00
Tor Lillqvist
70f175c9a7
Make Util a namespace instead of a class with just static member functions
...
This is not Java or C#.
2015-03-26 17:07:52 +02:00
Tor Lillqvist
422dfd1767
Start on load testing
...
Add a new program, loadtest, that runs a requested number of client sessions
in parallel to a loolwsd server. A client session loads one of a list of test
documents, and does some operations on it.
Move the getTokenInteger() and getTokenString() functions out from LOOLSession
into a new namespace LOOLProtocol, as they are neeeded also in the loadtest
program.
Add, also in LOOLProtocol, functions to parse some of the messages from the
server. (In general that is done in client JavaScript code, of course; only
for testing purposes needed in C++ code.)
2015-03-26 17:04:08 +02:00
Tor Lillqvist
425cae6b29
No need for <unistd.h> as far as I see
2015-03-26 17:04:08 +02:00
Tor Lillqvist
eb695513de
Use const reference parameter
2015-03-26 17:04:08 +02:00
Tor Lillqvist
3cb43839ea
Cosmetics
2015-03-26 17:04:08 +02:00
Tor Lillqvist
df95739819
Make DEFAULT_PORT_NUMBER public
2015-03-26 17:04:08 +02:00
Tor Lillqvist
b7c08d373e
WaE: private field '_helpRequested' is not used
2015-03-26 14:37:38 +02:00
Tor Lillqvist
e8aa011af4
Undo accidental indentation
2015-03-25 15:48:28 +02:00
Tor Lillqvist
5df0766dad
Return an error if the documentLoad() fails
2015-03-25 15:48:20 +02:00
Tor Lillqvist
867a66aa62
A bit more info
2015-03-24 19:04:16 +02:00
Tor Lillqvist
cae997c184
Check 'tile' parameter validity
2015-03-24 18:59:23 +02:00