fd9adcdb36
The consul Client is analogous to an http.Client, and we really don't need more than 1. Configure a single client and store it in the backend. Replace the default Transport's Dialer to reduce the KeepAlive setting from 30s to 17s. This avoids racing with the common network timeout value of 30s, and is also coprime to other common intervals. |
||
---|---|---|
.. | ||
backend.go | ||
backend_state.go | ||
backend_test.go | ||
client.go | ||
client_test.go |