Skip to content

Commit

Permalink
fix: reconnect agent when grpc connection is closing (#3518)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira authored Jan 15, 2024
1 parent 3f91673 commit 7373145
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func isConnectionError(err error) bool {
// From time to time, the server can start sending those errors to the
// agent. This mitigates the risk of an agent getting stuck in an error state
"unexpected HTTP status code received from server: 500",
"the client connection is closing",
}
for _, possibleErr := range possibleErrors {
if strings.Contains(err.Error(), possibleErr) {
Expand Down

0 comments on commit 7373145

Please sign in to comment.