-
Notifications
You must be signed in to change notification settings - Fork 3k
Simplify proxy selection for the REST Client #19261
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
@andrzejszywala any chance you could test this PR in your environment? Just get this branch and you can follow the instructions here: https://github.com/quarkusio/quarkus/blob/main/CONTRIBUTING.md#building-main |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 529aba7
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 extensions/scheduler/deployment✖
⚙️ JVM Tests - JDK 11 Windows #📦 extensions/scheduler/deployment✖
⚙️ JVM Tests - JDK 16 #📦 extensions/scheduler/deployment✖
|
@gsmet Yes, it's related. Seems like a flaky test. @ebullient Do you happen to know what exactly does the
|
Meters must have the same labels (class, method, ...). It looks like we somehow have two timers? That is a little odd. I usually do a bit of waiting for meters to show up for testing.. Line 66 in 0616e26
|
@gsmet did you mean "Fixes #19240"? Btw, I ran into a problem in the same code a few days ago because I had my nonProxyHosts (in MAVEN_OPTS) wrapped in double quotes. Without those, gradlew fails in the Quarkus build (sic!) due to the pipe separating 127.0.0.1 and localhost. |
- do not use regexp pattern matching for http.nonProxyHosts env variable given it is not supposed to be a valid regexp (* is the wildcard) - give precedence to the builder configuration over the env variables - delegate the whole proxy resolution via env variables to ProxySelector Fixes quarkusio#19240
529aba7
to
1e517c8
Compare
@famod yup, fixed. |
Btw, this also seems to fix #18548 (in which @michalszynkiewicz and @radcortez discussed how to move forward). |
@gsmet with your changes, is it still possible to set nonProxyHosts? |
@michalszynkiewicz the JDK proxy selector should take care of everything and consume the proxy system properties to determine what to do. The only thing I was a bit unsure of is that I changed the ordering slightly for something that sounds more logical to me... but I might have missed something. |
given it is not supposed to be a valid regexp (* is the wildcard)
Fixes #19240
Fixes #18548