Ashod Nakashian 05620be4c5 wsd: autosave on disconnecting based on loaded sessions only
When a client disconnects, we autosave only when there
are no other sessions. The idea being that it'd be
wasteful to save on every client disconnect, so long
that we have a later chance of saving.

This doesn't hold, however, when the only other
remaining session is one that had just connected
and hasn't loaded a view yet. WSD wouldn't
know about this, but when unloading the
disconnecting session, Kit will exit the process
as the last view is gone, losing all unsaved changes.

This patch tracks the sessions in WSD that have
loaded a view and takes that into account when
deciding to autosave on disconnect or not, thereby
fixing this corner case that may result in data loss.

Change-Id: I699721f2d710128ed4db65943b9357dff54380f5
Reviewed-on: https://gerrit.libreoffice.org/33126
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-01-16 01:58:54 +00:00
2017-01-16 01:44:39 +00:00
2017-01-16 01:48:43 +00:00
2017-01-13 14:52:08 +02:00
2016-11-28 04:50:32 +00:00
2015-11-20 17:13:26 +01:00
2017-01-09 21:17:25 +01:00

LibreOffice on-line.

This project has several components:

wsd/
	The Web Services Daemon - which accepts external connections.

kit/
	The client which lives in its own chroot and renders documents.

common/
	Shared code between these processes.

loleaflet/
	The client side JavaScript component.

It is recommended to read these files:

	wsd/README
	loleaflet/README

Enjoy.
Description
Read-only Mirror - no pull request (use https://gerrit.libreoffice.org instead)
Readme 214 MiB
Languages
JavaScript 48%
C++ 32.6%
HTML 6.7%
CSS 5.8%
Java 2.3%
Other 4.5%