0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-07-12 07:58:39 +02:00
dendrite/federationsender
Ben B 955244c092
use custom http client instead of the http DefaultClient (#823)
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>

Co-authored-by: Kegsay <kegan@matrix.org>
2020-04-03 11:40:50 +01:00
..
api use custom http client instead of the http DefaultClient (#823) 2020-04-03 11:40:50 +01:00
consumers Implement typing over federation (#949) 2020-03-30 16:40:28 +01:00
query Return server names (#833) 2019-12-20 13:24:57 +00:00
queue Further room version wiring (#936) 2020-03-27 16:28:22 +00:00
storage Log errors from rows.Close (#920) 2020-03-18 10:17:18 +00:00
types use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
federationsender.go Set up queryAPI in federationsender (#791) 2019-08-24 01:25:10 +08:00