From: Ben Fasoli Date: Fri, 25 Feb 2022 14:10:35 +0000 (-0800) Subject: Fix invalid max_keepalive_connections argument name (#2094) X-Git-Tag: 0.23.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6820b1d9c58abd574d1e4fc7e27fe7c4ba3e4cd4;p=thirdparty%2Fhttpx.git Fix invalid max_keepalive_connections argument name (#2094) The argument to `httpx.Limits` is named `max_keepalive_connections` but is referenced as `max_keepalive` in the docs. --- diff --git a/docs/advanced.md b/docs/advanced.md index 8306d443..90478148 100644 --- a/docs/advanced.md +++ b/docs/advanced.md @@ -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)