Skip to content

Apache configuration cleanup #713

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

Merged
merged 1 commit into from
Sep 21, 2018
Merged

Conversation

varunnvs92
Copy link
Contributor

@varunnvs92 varunnvs92 commented Sep 18, 2018

@varunnvs92 varunnvs92 force-pushed the varunkn/ApacheConfigCleanup branch from 32ea7e7 to e856392 Compare September 18, 2018 20:50
@varunnvs92 varunnvs92 requested a review from millems September 18, 2018 20:51
@SdkInternalApi
public enum ProxySystemSetting implements SystemSetting {

NON_PROXY_HOSTS("http.nonProxyHosts")
Copy link
Contributor

Choose a reason for hiding this comment

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

Are there any other system properties we should support?

@millems
Copy link
Contributor

millems commented Sep 18, 2018

Are our sync configurations consistent with async, or can they be updated to be more consistent?

@varunnvs92 varunnvs92 force-pushed the varunkn/ApacheConfigCleanup branch from e856392 to e42918f Compare September 18, 2018 20:58
@varunnvs92
Copy link
Contributor Author

varunnvs92 commented Sep 19, 2018

I don't see a lot of similarity between sync and async. The only options that match are connectionTimeout, maxConnections (renamed to maxConcurrency in async). I don't see any other related options.

ProxyConfiguration might makes sense for both sync/async but we don't currently have support for it and I am not sure which options in ProxyConfiguration can be applied to netty client as well.

@millems
Copy link
Contributor

millems commented Sep 19, 2018

What about acquire timeout in async? Can that be controlled separately in sync?

@varunnvs92 varunnvs92 force-pushed the varunkn/ApacheConfigCleanup branch 2 times, most recently from 86b3a67 to c33f4ba Compare September 19, 2018 23:31
@varunnvs92
Copy link
Contributor Author

I see there is a "http.connection-manager.timeout" option in Apache but it only applicable for a specific implementation of apache client. It might not be applicable if we change the type of underlying apache client.

@varunnvs92 varunnvs92 force-pushed the varunkn/ApacheConfigCleanup branch from c33f4ba to 1973750 Compare September 19, 2018 23:41
@millems
Copy link
Contributor

millems commented Sep 20, 2018

Do we expect to ever change the underlying implementation, particularly to one that wouldn't support a similar setting? It would be nice to expose the async-equivalent features if we can.

@varunnvs92
Copy link
Contributor Author

Makes sense. Added the option. Ah I really hate that Github doesn't allow replying to general comment directly.

@millems
Copy link
Contributor

millems commented Sep 20, 2018

Nice! Are there any other async options we can also support, like max pending acquires, etc.?

@varunnvs92
Copy link
Contributor Author

There is no max pending acquire option in apache. See this post. It applies to sync as well. AFAIK we have added all applicable options from SdkHttpConfigurationOption to the apache client.

We explicitly didn't want to add "TRUST_ALL_CERTIFICATES" option in either clients as it makes easy for customers to do the wrong thing.

@varunnvs92 varunnvs92 force-pushed the varunkn/ApacheConfigCleanup branch from 5f3fec6 to 80f6208 Compare September 21, 2018 20:50
@varunnvs92 varunnvs92 force-pushed the varunkn/ApacheConfigCleanup branch from 80f6208 to 51dad6a Compare September 21, 2018 20:54
@varunnvs92 varunnvs92 merged commit ca9af92 into master Sep 21, 2018
@varunnvs92 varunnvs92 deleted the varunkn/ApacheConfigCleanup branch September 21, 2018 22:53
aws-sdk-java-automation added a commit that referenced this pull request Jan 8, 2020
…e754c996

Pull request: release <- staging/21ebee23-a566-43d9-94d8-b902e754c996
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