dendrite/appservice/api
Benedikt Bongartz 9fb67d6ec5
use custom http client instead of the http DefaultClient
This commit replaces the default client from the http lib with a custom one.
The previously used default client doesn't come with a timeout. This could cause
unwanted locks.
That solution chosen here creates a http client in the base component dendrite
with a constant timeout of 30 seconds. If it should be necessary to overwrite
this, we could include the timeout in the dendrite configuration.
Here it would be a good idea to extend the type "Address" by a timeout and
create an http client for each service.

Closes #820

Signed-off-by: Benedikt Bongartz <benne@klimlive.de>
2020-03-30 20:29:36 +02:00
..
query.go use custom http client instead of the http DefaultClient 2020-03-30 20:29:36 +02:00