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

OpenStack driver creates new connection on every request #1885

Closed
llamasoft opened this issue Mar 27, 2023 · 0 comments · Fixed by #1886
Closed

OpenStack driver creates new connection on every request #1885

llamasoft opened this issue Mar 27, 2023 · 0 comments · Fixed by #1886

Comments

@llamasoft
Copy link
Contributor

The OpenStack driver creates a new connection for every request it makes and results in a large amount of overhead when attempting to do bulk actions.

def _set_up_connection_info(self, url):
result = self._tuple_from_url(url)
(self.host, self.port, self.secure, self.request_path) = result
self.connect()

The connection only needs to be recreated if the host/port/secure value has changed.

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

Successfully merging a pull request may close this issue.

2 participants