-
Notifications
You must be signed in to change notification settings - Fork 19
Add the option to timeout per host and not per ip #977
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
Conversation
Cherry pick to beta success |
Cherry pick to beta success |
| connManager = new PoolingHttpClientConnectionManager(socketFactoryRegistry, dnsResolver); | ||
| } else { | ||
| connManager = new PoolingHttpClientConnectionManager(socketFactoryRegistry); | ||
| } |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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
Cherry pick to beta success |
This reverts commit b977075.
No description provided.