diff options
author | Wim <wim@42.be> | 2017-02-17 17:51:07 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-02-17 17:51:07 +0100 |
commit | fe258e1b6752f2751d7aec742a4ee20a5594dcdb (patch) | |
tree | a8b2080b879c03cf3e13dd83da123a5251b8399d | |
parent | 2d16fd085e91eb31264f7ff6e8cce76f79f0445b (diff) | |
download | matterbridge-msglm-fe258e1b6752f2751d7aec742a4ee20a5594dcdb.tar.gz matterbridge-msglm-fe258e1b6752f2751d7aec742a4ee20a5594dcdb.tar.bz2 matterbridge-msglm-fe258e1b6752f2751d7aec742a4ee20a5594dcdb.zip |
Set http timeout to 10 seconds
-rw-r--r-- | matterclient/matterclient.go | 1 |
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" |