From fe258e1b6752f2751d7aec742a4ee20a5594dcdb Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 17 Feb 2017 17:51:07 +0100 Subject: Set http timeout to 10 seconds --- matterclient/matterclient.go | 1 + 1 file changed, 1 insertion(+) 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" -- cgit v1.2.3