Skip to content

Commit 86ceac4

Browse files
Merge pull request #12186 from cloudamqp/http_auth_backend_docs
Document request and connection timeout configs of the http auth backend
2 parents ec0d24b + 29a5e79 commit 86ceac4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

deps/rabbitmq_auth_backend_http/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,27 @@ If the certificate of your Web Server should be matched against a wildcard certi
159159
{customize_hostname_check, [{match_fun,public_key:pkix_verify_hostname_match_fun(https)}]}
160160
```
161161

162+
## Tuning HTTP client timeouts
163+
164+
You can configure the request timeout and connection timeout (see `timeout` and `connect_timeout` respectively in Erlang/OTP [httpc documentation](https://www.erlang.org/doc/apps/inets/httpc.html#request/5)). The default value is 15 seconds for both.
165+
166+
In `rabbitmq.conf`:
167+
168+
```
169+
auth_http.request_timeout=20000
170+
auth_http.connection_timeout=10000
171+
```
172+
173+
In the [`advanced.config` format](https://www.rabbitmq.com/configure.html#advanced-config-file):
174+
175+
```
176+
{rabbitmq_auth_backend_http,
177+
[{request_timeout, 20_000},
178+
{connection_timeout, 10_000},
179+
...
180+
]}
181+
```
182+
162183
## Debugging
163184

164185
[Enable debug logging](https://rabbitmq.com/logging.html#debug-logging) to see what the backend service receives.

0 commit comments

Comments
 (0)