We don't sleep on redirects; see line ~581 of connectionpool.py.

On 2/3/14, 3:22, Andrey Petrov wrote:
>
> In urllib3/util/retry.py:
>
> > +        want to pass a custom set of codes here depending on the logic in your
> > +        server.
> > +
> > +    :param float backoff_factor:
> > +        A backoff factor to apply between attempts. urllib3 will sleep for::
> > +
> > +            (backoff factor * (2 ^ (number of total retries - 1))
> > +
> > +        seconds. So if the backoff factor is 1, urllib3 will sleep 1, 2, 4,
> > +        8... seconds between retries. If the backoff factor is 0.5, urllib3
> > +        will sleep 0.5, 1, 2, 4... seconds between retries.
> > +
> > +        By default, the backoff factor is 0, which means that urllib3 will not
> > +        sleep between retry attempts.
> > +
> > +    :param int observed_errors: The number of errors observed so far. This is
>
> Maybe call this |backoff_count|?
>
> Should we be backing off on every type of retry? Certainly not on 
> redirects, right? (I believe this is a bug right now.)
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/shazow/urllib3/pull/326/files#r9373352>.
>