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

[Bug] InteractiveShell should close when exiting the context manager #26

Open
JacobCallahan opened this issue Nov 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@JacobCallahan
Copy link
Owner

Hussh Version
0.1.7

Describe the bug
When a user is executing a command that doesn't terminate on its own (or within the timeframe expected), like tailing a file, Hussh will timeout when trying to read during the context manager exit.

To Reproduce
Steps to reproduce the behavior:

with conn.shell() as sh:
    sh.send("foreman-tail")
    time.sleep(5)
assert sh.result.stdout

Expected behavior
The context manager should exit cleanly and the result attribute populate correctly. This would likely involve explicitly closing the connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant