-
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
fix(model-server-lib): increase websocket timeouts #208
Conversation
The existing timeouts sometimes caused disconnects when requesting larger amounts of data despite everything being functional.
Should we make the timeout configurable? |
Configuration would be great. However, whether the configuration file of ktor is read or not depends on whether From what I have seen, most libraries seem to default to 20 seconds for pings, but they usually assume simple tasks where communicating parties are not frequently blocked by cpu-intensive long-running tasks. Therefore, maybe this is still also a sensible default. |
I see, we use We could add the Of course in the MPS Plugin, where |
Inside MPS, this would either requiring to go through the MPS config mechanism or to just read some environment variable. In any case, maybe giving a bit more headroom here by default won't hurt? |
I understood, that a configuration in the MPS plugin would be much more to implement and currently not needed. |
Looks fine. Do you want to open a PR with that change as a replacement for my PR here? |
Sure. Closing in favor of #211 |
The existing timeouts sometimes caused disconnects when requesting larger amounts of data despite everything being functional.