-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Incorrect evaluation of "keep-alive-enabled" parameter in RESTEasy Reactive client #31480
Comments
/cc @FroMage (resteasy-reactive), @Sgitario (resteasy-reactive), @geoand (resteasy-reactive), @stuartwdouglas (resteasy-reactive) |
Will be fixed with #31482. |
@TomasHofman FYI |
Right, this wasn't obvious. I agree with the solution. Thanks for pinging me :). |
Yes, true. Unfortunately I am still not able to test these things with my local built Quarkus version. I am not sure if the contributing guide is correct/up-to-date. |
What kind of problems are you having? |
I did a
|
The current main of Quarkus has been moved to Jakarta EE 10. So you need to use the |
Ah yes, that makes sense. Works perfectly. Thanks! |
Describe the bug
The parameter
keep-alive-enabled
that was added in #31125 is currently evaluated incorrectly because a default value oftrue
is set not only for the global configuration, but also for the class name/config key values. This leads e.g. to a global value offalse
being overwritten by the default value oftrue
from the classname config which is not the expected behavior.Evaluation:
resolves always to the
clientConfigByClassName
value if set (which is always the case because of the default value).I will fix this directly myself by removing the default value for
keepAliveEnabled
inio.quarkus.restclient.config.RestClientConfig
.Expected behavior
Setting the global configuration to
false
forkeep-alive-enabled
without any other config value provided should disable the keep alive (same for config key).Actual behavior
The global configuration is overwritten by the incorrect default value from
clientConfigByClassName
(same for config key).How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: