Skip to content

retryable error doesn't increment connection timeout number #440

Description

@nunomaduro

Looking at the retry specs, we see that:

When retrying, use the next host in your array.
When retrying because of a timeout, raise the timeouts like this:
number_of_tries * base_timeout
Example: Search (5s timeout) → Search timeout → Search (10s timeout) → Repeat.

At the moment, on the Python API Client we don't use yet the retry_count for this.

Goal:

  1. Multiple timeouts by the number of tries on the line

    request = Request(verb.upper(), request_options.headers, data,
    .

  2. Add a test on it.

Implementation on C#: https://github.com/algolia/algoliasearch-client-csharp/blob/42ab1842f859df87482602b12d5cb714bfa8ec71/src/Algolia.Search/Transport/HttpTransport.cs#L118

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions