From fd8f146dc489d1e85cac9f7bad98ab445b1c8f3a Mon Sep 17 00:00:00 2001 From: Michael Hess Date: Tue, 11 Jun 2024 21:03:12 +0200 Subject: [PATCH] adjust backoff used by SignalR to never give up --- charger/easee.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charger/easee.go b/charger/easee.go index 0b0a9ad4ed..db9661cb93 100644 --- a/charger/easee.go +++ b/charger/easee.go @@ -172,6 +172,9 @@ func NewEasee(user, password, charger string, timeout time.Duration, authorize b client, err := signalr.NewClient(context.Background(), signalr.WithConnector(c.connect(ts)), + signalr.WithBackoff(func() backoff.BackOff { + return backoff.NewExponentialBackOff(backoff.WithMaxElapsedTime(0)) // prevents SignalR stack to silently give up after 15 mins + }), signalr.WithReceiver(c), signalr.Logger(easee.SignalrLogger(c.log.TRACE), false), )