Skip to content

reqstorm 2.3.0

Choose a tag to compare

@melihcolpan melihcolpan released this 08 Oct 23:08
· 9 commits to master since this release
  • SOCKS proxies: proxy= and Request(proxy=...) accept socks5://, socks5h://, socks4:// and socks4a:// URLs, with credentials. The h / a variants let the proxy resolve host names (Tor, internal networks). SOCKS and HTTP proxies can be mixed in one pool. Install with pip install "reqstorm[socks]".
  • Capped retry backoff: max_backoff (default 30 s). The wait between retries used to double without limit; retries=10 waited 256 s before the last attempt.
  • Jitter: waits are now a random time between half and all of the computed delay (jitter=True by default), so requests that failed together do not retry together.
  • Retry-After is still followed as given.
  • Command line: --max-backoff, --no-jitter, SOCKS URLs for --proxy.

Behaviour change: default waits between retries are now capped and jittered. Pass max_backoff=float("inf"), jitter=False for the previous behaviour.

Guides: https://reqstorm.github.io/guide/retries/ · https://reqstorm.github.io/guide/auth/#socks-proxies