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

Support transparent server restart after upgrading #1

Closed
wants to merge 1 commit into from

Conversation

Ashod
Copy link
Contributor

@Ashod Ashod commented May 27, 2020

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.

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.
@timar
Copy link
Member

timar commented May 27, 2020

Merged #3 instead of this.

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.

2 participants