Skip to content

Commit

Permalink
Merge branch 'fix/easeeSignalrDeadlock' into nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimmiMeloni committed Jun 11, 2024
2 parents e23cd8e + fd8f146 commit 2dfe245
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 2dfe245

Please sign in to comment.