Releases: asecurityteam/transport
Update Dependencies, remove code cov
v1.7.0
What's Changed
- Update libs, golang and fix linting failures by @gcase555 in #46
- update travis settings by @gcase555 in #47
- Reference default renovate settings by @byott in #45
- Drop Travis, Enable GitHub Actions by @ensary in #49
- Bump gopkg.in/yaml.v3 from 3.0.0-20200313102051-9f266ea9e77c to 3.0.0 by @dependabot in #51
New Contributors
Bugfix for infinite exponential backoffer
The exponential backoffer was coded in such a way that it could infinitely grow. That bug is fixed in this release.
Dependency update
Clean up
Ran go mod tidy & get rid of old versions of logevent
Bugfix: Use deep copy when cloning requests
The previous version of this library used a shallow copy of the request
object when retrying or hedging.
So long as shared attributes of the request, such as the headers map, is read-only during the retry/hedge then there is no issue.
However, if the retry or hedger is wrapped around subsequent middleware that modifies a shared asset, such as injecting a header value, then it creates a race condition and panics, which are fixed by changes in this release.
Bugfix: treat Retry-After header as seconds, not milliseconds
Fix RetryAfter plugin to stop canceling aggressively/incorrectly
It's a bug fix.
Perform exponential backoff for 429 responses that lack a Retry-After header directive
Servers may return 429 with or without a Retry-After header directive. When such a header is included we honor it (as we have before this release). When such a header is omitted, we use an exponential backoff starting with an initial wait of 20ms (which is what this release introduces).
Fix hedger done context usage, update dependencies
- Fix for an issue where the hedger plugin will prematurely cancel a
request context for a successful call - 3rd party dependencies updated