-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Update Javadoc on async request timeout value in HandlerFunctionAdapter #29882
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
srivatsa-cfp
commented
Jan 25, 2023
- Validate the timeout value passed to setAsyncRequestTimeout is positive value.
- Avoid setting negative value. If negative value is passed then set it to default timeout.
- Validate the timeout value passed to setAsyncRequestTimeout is positive value. - Avoid setting negative value. If negative value is passed then set it to default timeout.
…eout fix(src) : check if the timeout value is passed is positive value
The spec says the value should be 0 (never time out) or greater:
From a quick look, it does seem like the Servlet containers ignore a negative value. From that perspective, the proposed change doesn't change anything, but a Javadoc update could be useful. |
Thanks for sharing the information. Do you want to route the proposal to updating the Javadoc? |
- Update the Javadoc - the setting 0 or negative value is indicates that the asynchronous operation will never time out. - Helps the developer and maintainer to better understand the implementation.
chore(doc): update the javadoc for setAsyncRequestTimeout
Updated the JavaDoc
|