Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This combines the Ash'es work and mine into one #3

Merged
merged 4 commits into from
May 27, 2020
Merged

Conversation

kendy
Copy link
Contributor

@kendy kendy commented May 27, 2020

Some cosmetic changes - split the reformatting and the actual code + some prevention of infinite looping...

kendy and others added 4 commits May 27, 2020 11:42
The build script now bakes the server version hash
number in proxy.php that it is built against,
such that the latter can use it to detect stale servers.

After an upgrade, proxy.php will be running the newer
version but, unless loolwsd is restarted, the server
version returned in hosting/capabilities will be
unexpected (i.e. will not match the one in proxy.php).
When a mismatch is detected, proxy.php will kill
the loolwsd process and start a new instance.

Also replaced a number of tabs with spaces and fixed
indentation issues to help readability and consistency.
Indicate that we are restarting the instance, so that the one checking
the status can detect a restarting loop & disable.

Also avoid a potential infinite loop in case other request started the
loolwsd in the meantime.
@timar timar merged commit b6b4437 into master May 27, 2020
@timar timar deleted the kendy/upgrade branch May 27, 2020 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants