forked from genofire/unified-push-xmpp
distributor: timeout for XMPP connection setup from 1s to 10s
This commit is contained in:
parent
47b46549ee
commit
42e8289f2f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue