summaryrefslogtreecommitdiffhomepage
path: root/tests/test_packetizer.py
diff options
context:
space:
mode:
authorOmer Anson <omer.anson@toganetworks.com>2017-02-09 18:59:03 +0200
committerJeff Forcier <jeff@bitprophet.org>2017-02-20 14:33:50 -0800
commite58df62ef5e7339e5895f9f5ffdaa3452d45a69c (patch)
tree40df09ad3378e3a15149ad2b4cd083cc433dbc60 /tests/test_packetizer.py
parent6b6ff0fb33ca2e0e3b014cbca595cbc50d137e42 (diff)
Add back-reference from Transport to the SSHClient that created it
In some cases, the SSH client is created, the command is executed, the streams are extracted, and the explicit reference to SSHClient is then discarded (since it was e.g. created in a function that only returns the streams). In this case, the SHSClient may be garbage collected, and the connection's state is undefined. This fix adds a reference from Transport to the SSHClient that created it. The streams have a reference to the Channel, which references the Transport. Now that the Transport references the SSHClient, it won't be garbage collected until it is closed. Closes-Bug: #44 Related-Bug: #344
Diffstat (limited to 'tests/test_packetizer.py')
0 files changed, 0 insertions, 0 deletions