From 62e20e98f9e22dbac6af80cca9a0494e9f0ea662 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Mon, 13 Feb 2017 22:20:37 -0500 Subject: Fixing push notificaiton (#5394) --- app/notification.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/notification.go') diff --git a/app/notification.go b/app/notification.go index f2b454b50..fdff13c4f 100644 --- a/app/notification.go +++ b/app/notification.go @@ -535,7 +535,8 @@ func sendToPushProxy(msg model.PushNotification) *model.AppError { msg.ServerId = utils.CfgDiagnosticId tr := &http.Transport{ - TLSClientConfig: &tls.Config{InsecureSkipVerify: *utils.Cfg.ServiceSettings.EnableInsecureOutgoingConnections}, + TLSClientConfig: &tls.Config{InsecureSkipVerify: *utils.Cfg.ServiceSettings.EnableInsecureOutgoingConnections}, + DisableKeepAlives: true, } httpClient := &http.Client{Transport: tr} request, _ := http.NewRequest("POST", *utils.Cfg.EmailSettings.PushNotificationServer+model.API_URL_SUFFIX_V1+"/send_push", strings.NewReader(msg.ToJson())) -- cgit v1.2.3-1-g7c22