Skip to content

CXXCBC-517: Add HTTP session retries#589

Merged
avsej merged 2 commits intocouchbase:mainfrom
thejcfactor:CXXCBC-517
Jun 14, 2024
Merged

CXXCBC-517: Add HTTP session retries#589
avsej merged 2 commits intocouchbase:mainfrom
thejcfactor:CXXCBC-517

Conversation

@thejcfactor
Copy link
Copy Markdown
Contributor

Motivation

The client does not currently attempt to retry if the HTTP session fails to resolve or connect. Adding retries will help to improve user experience.

Changes

  • Add retries if resolve or connect fails.
  • If connect fails, and resolve provided multiple endpoints, attempt to connect to next endpoint in list of provided endpoints.
  • If ping() fails due to resolve/connect issue, list "attempted" hostname and port in remote_address property of endpoint_ping_info

@thejcfactor thejcfactor requested a review from avsej June 13, 2024 04:10
@thejcfactor
Copy link
Copy Markdown
Contributor Author

I will update CXXCBC-517 tomorrow w/ details from my testing.

Comment thread core/io/http_command.hxx Outdated
Motivation
==========
The client does not currently attempt to retry if the HTTP session fails
to resolve or connect.  Adding retries will help to improve user
experience.

Changes
=======
* Add retries if resolve or connect fails.
* If connect fails, and resolve provided multiple endpoints, attempt to
  connect to next endpoint in list of provided endpoints.
* If ping() fails due to resolve/connect issue, list "attempted"
  hostname and port in `remote_address` property of `endpoint_ping_info`
@thejcfactor
Copy link
Copy Markdown
Contributor Author

Have updated CXXCBC-517 with logs and details around the testing 👍

@avsej avsej merged commit 53c3060 into couchbase:main Jun 14, 2024
@thejcfactor thejcfactor deleted the CXXCBC-517 branch June 14, 2024 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants