-
Notifications
You must be signed in to change notification settings - Fork 629
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
Webclient timeout with Httpclient #3240
Comments
@mswindowsxp I'm not able to reproduce the described problem. See the reproducible example which is a compilation from the description here and the recommendation in the stackoverflow thread. |
hi @violetagg , I created a repo to reproduce, please refer this one: https://github.com/5Orange/webclient-error |
@5Orange Stackoverflow thread already provided an answer for the reproducible example that you prepared - you cannot block the event loop ... Reactor Netty is using just a few threads and if you block them then you will observe the behaviour that you described above. If you need to block or you have CPU intensive operations then you need to offload. |
@violetagg Vio |
@5Orange The project is now broken. The method should return
Both my client that sends requests in parallel and My client
curl
|
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Can't reproduce either using either |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open. |
Problem statement
While sending high traffic to API, experiencing WebClient timeout but downstream still working and returning response according to timeout configuration time
Expected Behavior
it should return 200 instead of 500 and webclient timeout error
Actual Behavior
Steps to Reproduce:
using Jmeter to send 20 requests into GET /test API, and half of them failed
Reactor version(s) used: 1.0.23
+--- org.springframework.boot:spring-webflux:5.3.31^M
| | --- io.projectreactor.netty:reactor-netty-http:1.0.39^M
JVM version (java -version): 11
The text was updated successfully, but these errors were encountered: