-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
connectionTimeOut and readTimeout not working on UrlResource #28909
Comments
The javadoc of
This override of yours not being called is working as designed. Let's see what the rest of the team thinks on the use case above. |
While the javadoc for On the other hand, the default implementation sets the HTTP method to |
The I don't think it is a big deal to set a proper HTTP method in that Maybe the pattern is to use an |
Given the conversation above, both
While this behavior is documented in the javadoc, as it lists the methods delegating to the customization method, the developers expectations can be quite different when sub-classing a We can change this behavior without introducing breaking changes for sub-classes: we can set the HTTP request method after the customization call for each method, as it is its responsibility in the first place. |
I am trying to terminate a connection if no data is being received or server is just keeping the connection open for a url by setting value for connectionTimeout and readTimeout but it is not working.
Spring boot version 2.7.1
Here is the link to SO https://stackoverflow.com/questions/73165245/setting-connectiontimeout-and-readtimeout-not-working-on-urlresource
Below code reproduces the issue.
Expected:- both connectionTimeout and readTimeout should work as per given value and terminate the connection if time exceeds the timeout value
The text was updated successfully, but these errors were encountered: