Disabling keep alives for push proxy connections

This commit is contained in:
Christopher Speller
2017-02-02 19:15:37 -05:00
parent 1a9891f0f5
commit a5de69791a
+2 -1
View File
@@ -1120,7 +1120,8 @@ func sendToPushProxy(msg model.PushNotification) {
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()))