[paramiko] closing SFTP connections
Michael Gratton
michael.gratton at rsp.com.au
Sun Dec 10 16:53:16 PST 2006
Hi guys,
We're using Paramiko for some SFTP transfers and are occasionally seeing
connections not getting closed down correctly. This results in the
python process seeming to hang. After doing an strace/lsof on such a
process, it is continually select'ing an SSH connection.
We are closing the connection by calling SFTPClient.close. Looking
through the code base it seems that this calls Channel.close but not
Transport.close.
I'm going to try to work around the problem by calling Transport.close
explicitly after closing the client, but is this something that should
happen in SFTPClient.close automatically?
Thanks,
/MIke
--
Michael Gratton -- Code Wrangler
Rising Sun Pictures -- http://www.rsp.com.au/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://www.lag.net/pipermail/paramiko/attachments/20061211/2848be8d/attachment.pgp
More information about the paramiko
mailing list