mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-26 08:13:09 -06:00
Set timeout on appservice client
This commit is contained in:
parent
d327bacf28
commit
0d95e06045
|
|
@ -295,6 +295,7 @@ func (b *BaseDendrite) CreateClient() *gomatrixserverlib.Client {
|
||||||
func (b *BaseDendrite) CreateAppserviceClient() *gomatrixserverlib.Client {
|
func (b *BaseDendrite) CreateAppserviceClient() *gomatrixserverlib.Client {
|
||||||
opts := []gomatrixserverlib.ClientOption{
|
opts := []gomatrixserverlib.ClientOption{
|
||||||
gomatrixserverlib.WithSkipVerify(b.Cfg.AppServiceAPI.DisableTLSValidation),
|
gomatrixserverlib.WithSkipVerify(b.Cfg.AppServiceAPI.DisableTLSValidation),
|
||||||
|
gomatrixserverlib.WithTimeout(time.Second * 60),
|
||||||
}
|
}
|
||||||
if b.Cfg.Global.DNSCache.Enabled {
|
if b.Cfg.Global.DNSCache.Enabled {
|
||||||
opts = append(opts, gomatrixserverlib.WithDNSCache(b.DNSCache))
|
opts = append(opts, gomatrixserverlib.WithDNSCache(b.DNSCache))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue