]> git.ipfire.org Git - thirdparty/httpx.git/commitdiff
Fix invalid max_keepalive_connections argument name (#2094)
authorBen Fasoli <benfasoli@gmail.com>
Fri, 25 Feb 2022 14:10:35 +0000 (06:10 -0800)
committerGitHub <noreply@github.com>
Fri, 25 Feb 2022 14:10:35 +0000 (14:10 +0000)
The argument to `httpx.Limits` is named `max_keepalive_connections` but is referenced as `max_keepalive` in the docs.

docs/advanced.md

index 8306d4433f24931dda454b2303dd4f60a4bab7f1..904781485703dea776b09fe0ab9e1e3d0fef52a3 100644 (file)
@@ -670,7 +670,7 @@ response = client.get('http://example.com/')
 You can control the connection pool size using the `limits` keyword
 argument on the client. It takes instances of `httpx.Limits` which define:
 
-- `max_keepalive`, number of allowable keep-alive connections, or `None` to always
+- `max_keepalive_connections`, number of allowable keep-alive connections, or `None` to always
 allow. (Defaults 20)
 - `max_connections`, maximum number of allowable connections, or `None` for no limits.
 (Default 100)