parallel-ssh icon indicating copy to clipboard operation
parallel-ssh copied to clipboard

Parallel client going out of scope closes connections with active output objects

Open pkittenis opened this issue 4 years ago • 0 comments

Describe the bug Parallel client going out of scope closes connections with active output objects.

To Reproduce

Steps to reproduce the behavior:

output = ParallelClient(['localhost']).run_command('echo me')
print(list(output[0].stdout))

Output can be truncated.

Expected behavior Output can be read in its entirety while output objects are in scope.

Actual behaviour Cannot read complete output.

Additional information parallel-ssh: 2.5.3 ssh2-python: 0.22.0

pkittenis avatar Jan 15 '21 14:01 pkittenis