Skip to content

Add automatic retries to download paths #4894

Closed

Description

@schlessera

For operations like downloading a theme or a language file, or latest Core code, we should have an automatic retry mechanism with a configurable threshold (defaulting to 3 as a good compromise).

This would not only make general scripting with WP-CLI more reliable but also drastically increase the reliability of our automated tests, which constantly fail due to random timeouts when doing downloads.

Activity

  1. added 3 commits that reference this issue on Jun 20, 2019
  2. ovidiul commented on Jun 20, 2019

    @ovidiul
    Contributor

    I would propose this refactoring of the http_request function ovidiul@698a408 , it refactors the ssl call and adds a retry option on curl timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions