Skip to content

Add the option to timeout per host and not per ip#977

Merged
tomas-sexenian merged 7 commits into
masterfrom
one-ip-timeout
Jul 11, 2025
Merged

Add the option to timeout per host and not per ip#977
tomas-sexenian merged 7 commits into
masterfrom
one-ip-timeout

Conversation

@tomas-sexenian

Copy link
Copy Markdown
Contributor

No description provided.

@tomas-sexenian tomas-sexenian requested a review from iroqueta June 23, 2025 16:34
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

iroqueta
iroqueta previously approved these changes Jun 23, 2025
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

@tomas-sexenian tomas-sexenian requested a review from iroqueta July 10, 2025 13:57
connManager = new PoolingHttpClientConnectionManager(socketFactoryRegistry, dnsResolver);
} else {
connManager = new PoolingHttpClientConnectionManager(socketFactoryRegistry);
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it better to use
boolean useCustomDnsResolver = getGxIpResolverConfig() != null;

PoolingHttpClientConnectionManager connManager = useCustomDnsResolver
? new PoolingHttpClientConnectionManager(socketFactoryRegistry, new FirstIpDnsResolver())
: new PoolingHttpClientConnectionManager(socketFactoryRegistry);

@iroqueta iroqueta left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest a minor change

@tomas-sexenian tomas-sexenian requested a review from iroqueta July 10, 2025 21:32
@genexusbot

Copy link
Copy Markdown
Collaborator
Cherry pick to beta success

@tomas-sexenian tomas-sexenian merged commit b977075 into master Jul 11, 2025
10 checks passed
@tomas-sexenian tomas-sexenian deleted the one-ip-timeout branch July 11, 2025 13:47
tomas-sexenian added a commit that referenced this pull request Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants