From a49c21df3a93a368e2859aac9dbe92add77c02d6 Mon Sep 17 00:00:00 2001 From: bergquist Date: Thu, 22 Sep 2016 19:24:18 +0200 Subject: [PATCH] fix(png-renderer): increase timeouts --- pkg/services/alerting/notifier.go | 4 ++-- pkg/services/notifications/webhook.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/services/alerting/notifier.go b/pkg/services/alerting/notifier.go index bb48f71cdcd..61cc0bc55d3 100644 --- a/pkg/services/alerting/notifier.go +++ b/pkg/services/alerting/notifier.go @@ -72,8 +72,8 @@ func (n *RootNotifier) uploadImage(context *EvalContext) error { Url: imageUrl, Width: "800", Height: "400", - SessionId: "123", - Timeout: "10", + SessionId: "cef0256d482b4293", + Timeout: "30", } if imagePath, err := renderer.RenderToPng(renderOpts); err != nil { diff --git a/pkg/services/notifications/webhook.go b/pkg/services/notifications/webhook.go index 31f00baebd3..67ffa43900a 100644 --- a/pkg/services/notifications/webhook.go +++ b/pkg/services/notifications/webhook.go @@ -44,7 +44,7 @@ func sendWebRequest(webhook *Webhook) error { webhookLog.Debug("Sending webhook", "url", webhook.Url) client := http.Client{ - Timeout: time.Duration(3 * time.Second), + Timeout: time.Duration(10 * time.Second), } request, err := http.NewRequest("POST", webhook.Url, bytes.NewReader([]byte(webhook.Body)))