Skip to content

Commit

Permalink
fix: try reconnecting when multiple SendHeader called
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Jun 5, 2024
1 parent b7cd614 commit 928a439
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions agent/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ func isConnectionError(err error, req request) 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",

// This is an experimental idea to handle the multiple header error
"SendHeader called multiple times",
}
for _, possibleErr := range possibleErrors {
if strings.Contains(err.Error(), possibleErr) {
Expand Down

0 comments on commit 928a439

Please sign in to comment.