-
Notifications
You must be signed in to change notification settings - Fork 8
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
How to set timeout value on config file for erocci server ? #86
Comments
I suppose you're speaking about timeout on a backend call ? |
When i have a long (more than 5 seconds) working thread in erocci-dbus-java, erocci send a 500 internal error. I want to expand the timeout timer of Erocci from 5 to 10secs for exemple. That is my question. I think this should be parameterized in config file for enhanced user experience. |
Allowing too long timeout is a really bad practice, for performance and/or security reasons. If you want to handle long requests, the answer is the HTTP code 202, which can be implemented in erocci as I described above, but not extending timeouts. Extending the timeout in erocci would be complex because a lot of code (in erocci but also in the HTTP framework) are based on these widely adopted timeout values. |
My proposal for backend API evolution, compliant with REST architectures / HTTP best practices:
|
Suggestion: if you don't know how much time you need for treating the request, you can even implement the following:
(thinking loud) As this is a generic solution, I could implement it in the backend manager... |
No description provided.
The text was updated successfully, but these errors were encountered: