elastic / elastic-transport-go

Transport struct and utilities shared among Go Elastic client libraries
Apache License 2.0
13 stars 10 forks source link

Resilient retry mecanism #3

Closed Anaethelion closed 2 years ago

Anaethelion commented 2 years ago

Theses changes allows the retry mechanism to retry the request if any error other than timeout occurs. In case of a cluster, this will ensure the connection where the error occured is marked as dead and request will be retried on a new host provided by the pool.

Relates to #2