Skip to content

Commit

Permalink
Increase the client timeout to 10m (#23839) (#25498)
Browse files Browse the repository at this point in the history
* Fixes a timeout error when the client and Fleet Server both have 5 mins
  timeout and client times out before the server request.
  The Fleet server should drive the request timeout for long poll.

(cherry picked from commit 6a0aec0)

Co-authored-by: Aleksandr Maus <aleksandr.maus@elastic.co>
  • Loading branch information
mergify[bot] and aleksmaus committed May 3, 2021
1 parent 8551a81 commit b7ae4f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x-pack/elastic-agent/pkg/remote/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ func DefaultClientConfig() Config {
SpaceID: "",
Username: "",
Password: "",
Timeout: 5 * time.Minute,
TLS: nil,
// Default timeout 10 minutes, expecting Fleet Server to control the long poll with default timeout of 5 minutes
Timeout: 10 * time.Minute,
TLS: nil,
}
}

Expand Down

0 comments on commit b7ae4f6

Please sign in to comment.