Skip to content

Commit

Permalink
2.4.1: Sleep between ALL retries.
Browse files Browse the repository at this point in the history
- `Retry-After` header is preferred if present in the response
- HTTPClientMixin.DEFAULT_RETRY_TIMEOUT sets the default sleep time
- Sleep time can be set by the `retry_timeout` keyword arg
- Sleep time is exponentially increased with attempt count if the
  `Retry-After` header is not present.
  • Loading branch information
dave-shawley committed Nov 30, 2020
1 parent 2bc5322 commit 3e1e1e4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions docs/history.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Version History
===============

`Next Release`_
---------------
`2.4.1`_ Nov 30 2020
--------------------
- Make request retry timeout configurable
- Apply retry sleeping to all retried attempts
- Use an exponential backoff if ``Retry-After`` header is absent
Expand Down Expand Up @@ -119,7 +119,8 @@ Version History
---------------------
- Initial Version

.. _Next Release: https://github.com/sprockets/sprockets.mixins.http/compare/2.4.0...master
.. _Next Release: https://github.com/sprockets/sprockets.mixins.http/compare/2.4.1...master
.. _2.4.1: https://github.com/sprockets/sprockets.mixins.http/compare/2.4.0...2.4.1
.. _2.4.0: https://github.com/sprockets/sprockets.mixins.http/compare/2.3.3...2.4.0
.. _2.3.3: https://github.com/sprockets/sprockets.mixins.http/compare/2.3.1...2.3.3
.. _2.3.1: https://github.com/sprockets/sprockets.mixins.http/compare/2.3.0...2.3.1
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def read_requirements(name):

setuptools.setup(
name='sprockets.mixins.http',
version='2.4.0',
version='2.4.1',
description='HTTP Client Mixin for Tornado RequestHandlers',
long_description=open('README.rst').read(),
url='https://github.com/sprockets/sprockets.mixins.http',
Expand Down
2 changes: 1 addition & 1 deletion sprockets/mixins/http/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from sprockets.mixins.mediatype import transcoders
from tornado import httpclient

__version__ = '2.4.0'
__version__ = '2.4.1'

LOGGER = logging.getLogger(__name__)

Expand Down

0 comments on commit 3e1e1e4

Please sign in to comment.