summaryrefslogtreecommitdiffstats
path: root/matterclient
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-02-17 17:51:07 +0100
committerWim <wim@42.be>2017-02-17 17:51:07 +0100
commitfe258e1b6752f2751d7aec742a4ee20a5594dcdb (patch)
treea8b2080b879c03cf3e13dd83da123a5251b8399d /matterclient
parent2d16fd085e91eb31264f7ff6e8cce76f79f0445b (diff)
downloadmatterbridge-msglm-fe258e1b6752f2751d7aec742a4ee20a5594dcdb.tar.gz
matterbridge-msglm-fe258e1b6752f2751d7aec742a4ee20a5594dcdb.tar.bz2
matterbridge-msglm-fe258e1b6752f2751d7aec742a4ee20a5594dcdb.zip
Set http timeout to 10 seconds
Diffstat (limited to 'matterclient')
-rw-r--r--matterclient/matterclient.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/matterclient/matterclient.go b/matterclient/matterclient.go
index 21943566..c641e9f0 100644
--- a/matterclient/matterclient.go
+++ b/matterclient/matterclient.go
@@ -103,6 +103,7 @@ func (m *MMClient) Login() error {
// login to mattermost
m.Client = model.NewClient(uriScheme + m.Credentials.Server)
m.Client.HttpClient.Transport = &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: m.SkipTLSVerify}}
+ m.Client.HttpClient.Timeout = time.Second * 10
var myinfo *model.Result
var appErr *model.AppError
var logmsg = "trying login"