From 42e8289f2fe4b32faae2383fd99ae82f5a80f8b4 Mon Sep 17 00:00:00 2001 From: Geno Date: Wed, 15 Sep 2021 20:47:29 +0200 Subject: [PATCH] distributor: timeout for XMPP connection setup from 1s to 10s --- distributor/xmpp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distributor/xmpp.go b/distributor/xmpp.go index 8e08ade..ce73839 100644 --- a/distributor/xmpp.go +++ b/distributor/xmpp.go @@ -43,7 +43,7 @@ func (s *XMPPService) Run(dbus *distributor.DBus, store *storage.Storage) error s.dbus = dbus s.store = store j := jid.MustParse(s.Login) - ctx, cancel := context.WithTimeout(context.Background(), time.Duration(time.Second)) + ctx, cancel := context.WithTimeout(context.Background(), time.Duration(time.Second*10)) defer cancel() if s.session, err = xmpp.DialClientSession( ctx, j,