Skip to content

Commit

Permalink
Easee: adjust backoff used by SignalR to never give up (#14300)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimmiMeloni committed Jun 12, 2024
1 parent 104defc commit 61830fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charger/easee.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down

0 comments on commit 61830fa

Please sign in to comment.