-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Improve connectivity check #55321
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
Improve connectivity check #55321
Conversation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…redirection Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
joshtrichards
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call.
Maybe add the shuffle just for kicks.
Kind of tempting to put something like https://one.one.one.one/ and/or https://www.speedtest.net/ in here...
| 'https://connectivity.nextcloud.com', 'https://www.eff.org', 'https://edri.org' | ||
| ]); | ||
|
|
||
| foreach ($siteArray as $site) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| foreach ($siteArray as $site) { | |
| shuffle($siteArray); | |
| foreach ($siteArray as $site) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we prefer to default to the same one always and avoid random behavior.
|
Might be worth backporting this. It's a quasi-bug fix. It's not really a feature exactly. |
|
Documented in nextcloud/documentation#13719 Anyone in a hurry can just set connectivity.nextcloud.com in the config file at connectivity_check_domains. |
Summary
Current version does a GET on our website, which is heavier than needed, both for our website and the Nextcloud instances.
Changed to a dedicated service and a HEAD request.
Also took the opportunity to remove startpage and correct edri url to avoid a redirection.
Checklist
3. to review, feature component)stable32)