-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Allow setting JDKHttpClient connectionTimeout, readTimeout, version via system property #14306
Conversation
…ia system property Signed-off-by: Viet Nguyen Duc <[email protected]>
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
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.
Thank you, @VietND96!
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Allow setting JDKHttpClient connectionTimeout, readTimeout, version via system property
Motivation and Context
Fix: #14258
Proactive to set different config for readTimeout, connectionTimeout, and version via system properties
webdriver.httpclient.connectionTimeout
,webdriver.httpclient.readTimeout
,webdriver.httpclient.version
In Java bindings, we are able to create ClientConfig and insert via
RemoteWebDriver.builder()
However, all other bindings will be implemented by #12368. Hence, fetching from system env would also be a potential (workaround) solution for all bindings.
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
JDKHttpClient
connectionTimeout
,readTimeout
, andversion
via system properties.ClientConfig
class to read these properties and apply them to the default configuration.ClientConfig
correctly reads and applies these system properties.Changes walkthrough 📝
ClientConfig.java
Add system property support for HTTP client configuration
java/src/org/openqa/selenium/remote/http/ClientConfig.java
connectionTimeout
,readTimeout
, andversion
.HttpClientTestBase.java
Add test for HTTP client configuration via system properties
java/test/org/openqa/selenium/remote/internal/HttpClientTestBase.java