libreoffice-online:private/Ashod/nonblocking

Last commit made on 2017-03-10
Get this branch:
git clone -b private/Ashod/nonblocking https://git.launchpad.net/libreoffice-online

Branch merges

Branch information

Name:
private/Ashod/nonblocking
Repository:
lp:libreoffice-online

Recent commits

5ad0df4... by Michael Meeks <email address hidden>

Re-work socket buffer sizing and setting.

Avoid writing more data than can be absorbed by our socket buffer.
It is fine to set socket buffer sizes after bind/accept.

86833a6... by Michael Meeks <email address hidden>

foo.

21acbf1... by Ashod Nakashian <email address hidden>

nb: fix saving when last client disconnects

When the last client session is disconnected
docBroker must first issue a save and wait
until the kit processes the save and sends
back notfication. Since said notification
goes to the ChildSession (which is the last)
and said ChildSession is the one that signals
to docBroker to persist the doc to the Storage,
we need to keep all components alive and kicking
during this final saving.

As such, when the last session is to be removed
from docBroker, we instead issue an autosave and
continue everything as normal. When the save
notification even arrives and ChildSession signals
docBroker to persist the doc, we check if we were
destroying and in that even remove that last session
and stop the polling thread.

The docBroker instance itself will get cleaned up
in due time.

Change-Id: Ie84e784284e1ec12b0b201d6bf75170b31f66147

9093f42... by Ashod Nakashian <email address hidden>

nb: really wait 20 seconds for last save

Change-Id: Ia30beb1e68c55b9987a9730e9acab11bd2871811

2b54617... by Ashod Nakashian <email address hidden>

nb: logging

Change-Id: Ic3b724d5869f75234af2238b96a90c4745155b86

b273194... by Ashod Nakashian <email address hidden>

nb: correct forkit initialization sequence

This avoids extra kits, avoid logging
unnecessary errors and adds informative logging.

Change-Id: I7a4bb0b690f9787fc362d0b6aefcc722586eaed1

c768d4c... by Ashod Nakashian <email address hidden>

nb: cleanup old comments and move MAX_CONNECTIONS assertion

Change-Id: I24f3f4321ccc62c26c433d4a709b41c894a0196d

10bb716... by Ashod Nakashian <email address hidden>

nb: set the polling thread name for better logging

Change-Id: Iccc4337827f00af08327a4430f3d40fa69ac71b2

3e65ec3... by Michael Meeks <email address hidden>

Use larger socket buffers for serving files to improve efficiency.

The combination of nodelay + minimum buffers is horrific for
file-serving; speedup is from 3.3s to 33ms to serve bundle.js.

61cee96... by Michael Meeks <email address hidden>

Centralize idle poll time.