Jetpack Debug: Do not fail if WP.com SELF test times outs. #13530
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #12881
The "WP.com SELF Test" pings WordPress.com and requests the Jetpack.com/support/debug/ test suite ran, then reports the result. To allow time for all of the work, the HTTP timeout is increased to 30 seconds. Sometimes this isn't long enough either because the site is slow or simply slower to reach over the network.
Previously, a timeout when requesting the SELF test resulted in a test failure, reporting as such in the Site Health section of a WordPress site.
Now, a timeout will not fail out the test and won't be reported on Site Health.
Next steps would be evaluate this test and the REST API-based connection test to only require one.
Changes proposed in this Pull Request:
Is this a new feature or does it add/remove features to an existing part of Jetpack?
Testing instructions:
add_filter( 'http_request_timeout', function () { return 1; } ), 999 );
to your site (to reduce the HTTP timeout to 1 second.Proposed changelog entry for your changes: