The /results response from our sensu API is huge, so unless the machine is quite powerful there is no chance that the response can be decoded in less than 3s. So instead we just get:
Query Sensu failed. net/http: request canceled (Client.Timeout exceeded while reading body)
This PR adds the --timeout flag, which allows you to alter the timeout set on the httpClient.
The
/results
response from our sensu API is huge, so unless the machine is quite powerful there is no chance that the response can be decoded in less than 3s. So instead we just get:This PR adds the
--timeout
flag, which allows you to alter the timeout set on the httpClient.