Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connectivity: Fixes address resolution calls when using EnableTcpConnectionEndpointRediscovery #1758

Merged
merged 4 commits into from
Aug 7, 2020

Conversation

ealsur
Copy link
Member

@ealsur ealsur commented Aug 6, 2020

Pull Request Template

Description

When the connection reset event is fired while using CosmosClientOptions.EnableTcpConnectionEndpointRediscovery, today we trigger address resolution to refresh the address cache in the client.
Changing this behavior to only remove the stale addresses from the cache and not do address refresh.
The address resolution to get the new set of addresses will happen in the request path. This helps with reducing the number of address resolution calls made to the gateway for collections that are not actively in use in the client.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@ealsur ealsur merged commit c1c15ce into master Aug 7, 2020
@ealsur ealsur deleted the users/ealsur/gatewayaddressport branch August 7, 2020 16:43
@ghost
Copy link

ghost commented Dec 15, 2021

Closing due to in-activity, pease feel free to re-open.

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