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

Add close() to URLOperations #667

Open
mih opened this issue Apr 25, 2024 · 0 comments
Open

Add close() to URLOperations #667

mih opened this issue Apr 25, 2024 · 0 comments

Comments

@mih
Copy link
Member

mih commented Apr 25, 2024

Right now all handler implementations only support "one-off" operations, i.e. each call performs everything from scratch. This is simple, but also costly in the case of handlers that have significant setup costs. One example is SSH which requires getting a shell per operation.

It would make sense to "cache" setup stages to allow for efficient implementations. This also means that we need to support a cleanup handler, such as close() to let implementations free up resources when they are no longer needed.

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