-
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
Rest Client exausts Threads. #22862
Comments
I assume you are using |
I think I can add the same default timeouts that the reactive client uses as part of #22872. |
I think it could be interesting to have a global timeout for REST clients (like we have other properties that set global configuration for clients). |
that's a cool idea |
Definitely |
Would something like #22942 be OK? |
This is ok. Thanks @gsmet ! |
Describe the bug
This is a major issue for us.
I have dozens of services in prod that from time to time they freeze due to thread exhaustion. The vertex event loop stalls.
his can be traced back to unconfigured timeouts on rest clients that hog connections.
We need to go to all rest clients and specify connection and read timeouts on configurations, like:
If you use programatic rest creation you must:
There are many issues related with this. See:
#15056
#15383
#15191
This happens on 1.13.7.Final but I believe 2.* suffers from the same problem.
Expected behavior
If the REST Client connection is half closed in the other side, it will timeout after a default amount of time.
Actual behavior
If the REST Client connection is half closed in the other side it will never timeout.
How to Reproduce?
You need a rest client calling an endpoint in a loop, in different threads. The other side must hold the connection and not reply.
Output of
uname -a
orver
No response
Output of
java -version
11
GraalVM version (if different from Java)
No response
Quarkus version or git rev
1.13.7.Final
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: