Skip to content

Commit

Permalink
feat: make agent reconnect on expired token (#3364)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Nov 15, 2023
1 parent 872ac43 commit 9b92737
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent/client/client.go
Expand Up @@ -200,6 +200,7 @@ func isConnectionError(err error) bool {
possibleErrors := []string{
"connection refused",
"server closed",
"token is expired",
}
for _, possibleErr := range possibleErrors {
if strings.Contains(err.Error(), possibleErr) {
Expand Down

0 comments on commit 9b92737

Please sign in to comment.