Files
releases/topdown
Patrick East 7e77ac5088 Add timeout for http.send builtin
There is a new optional `timeout` option to specify with `http.send`
which will set a client timeout on the request. This will override the
default 5 second timeout.

This change also corrects the request to use the builtin context. This
means that if the evaluation is canceled the request will also now be
canceled.

There is an environment variable for adjusting the default timeout
which we should aim to remove in future OPA versions (when
appropriate). For now though it is still supported, and will panic if
supplied with an invalid value rather than previously ignoring it and
effectively disable the timeout (0 == unlimited).

Fixes: #2099
Signed-off-by: Patrick East <east.patrick@gmail.com>
2020-02-18 13:42:30 -08:00
..
2018-07-10 13:06:34 -07:00
2018-07-10 13:06:34 -07:00
2019-09-27 09:55:11 -04:00
2017-07-10 08:51:38 -07:00
2020-02-13 11:31:50 -08:00
2018-02-17 08:21:04 -08:00
2017-11-09 09:07:48 -08:00
2020-01-28 17:41:19 -08:00
2020-02-18 13:42:30 -08:00
2020-02-18 13:42:30 -08:00
2019-12-12 10:24:25 -08:00
2019-12-12 10:24:25 -08:00
2020-02-13 11:31:50 -08:00
2020-01-28 17:41:19 -08:00
2018-01-24 14:10:43 -08:00