Skip to content
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

kconnect() is really inefficient: #6

Open
flipmcf opened this issue Sep 13, 2022 · 0 comments
Open

kconnect() is really inefficient: #6

flipmcf opened this issue Sep 13, 2022 · 0 comments

Comments

@flipmcf
Copy link
Member

flipmcf commented Sep 13, 2022

connect is called all over the place in rfa.kaltura2.
It's designed to return a client (and session key) that can be used to communicate to the API, and it gets that session key through an authentication dance.

Instead of holding onto that session key and re-using it within the plone application (like save the session key it to the registry and re-use it to create more client connections) it asks for a new one on every call to kconnect() and re-does the authentication dance.

To make matters worse, kconnect() tells the kaltura server to keep that session key authorized for 86400 (one day) even though we throw it away and immediately ask for a new one on every call.

This is embarrassing and needs to be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant