Hi All, <br>I am using paramiko 1.5.3 in my python application.<br>I found that when large data is fetched using paramiko with prefetch, deadlock condition occurs.<br>I found through paramiko debug level logs, that deadlock occurs when paramiko goes for rekeying.<br>
Below is the paramiko log. <br><br>DEB [20080315-18:27:58.843] thr=1 paramiko.transport: Rekeying (hit 91 packets, 1051212 bytes received)<br><br>Above is the last log I saw after which my application stopped responding. <br>
<br>For reproducing deadlock quickly, I had set the low limit for REKEY_PACKETS.<br>I set the limit as<br> REKEY_PACKETS = pow(2, 20)<br> REKEY_BYTES = pow(2, 20)<br>(In file paramiko/packet.py , class Packetizer)<br>
<br><br>For tackling this problem I close connections periodically.<br>Has this problem been solved in later verion of paramiko ?.<br><br>I tried paramiko 1.7.1 for short test in which I did not observe deadlock condition even after setting REKEY_PACKETS limit.<br>
Below are the debug logs.<br><br>DEB [20080315-18:23:00.193] thr=6 paramiko.transport: Switch to new keys ...<br>DEB [20080315-18:23:00.467] thr=6 paramiko.transport: Rekeying (hit 91 packets, 1049340 bytes received)<br>
DEB [20080315-18:23:00.571] thr=6 paramiko.transport: kex algos:['diffie-hellman-group-exchange-sha1', 'diffie-hellman-group1-sha1'] server<br> key:['ssh-rsa', 'ssh-dss'] client encrypt:['aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc', 'arcfour', 'aes192-cbc', 'aes256-cbc', '<br>
<a href="mailto:rijndael-cbc@lysator.liu.se">rijndael-cbc@lysator.liu.se</a>', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr'] server encrypt:['aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cb<br>
c', 'arcfour', 'aes192-cbc', 'aes256-cbc', '<a href="mailto:rijndael-cbc@lysator.liu.se">rijndael-cbc@lysator.liu.se</a>', 'aes128-ctr', 'aes192-ctr', 'aes256-ctr'] client mac:['hmac-md5', '<br>
hmac-sha1', 'hmac-ripemd160', '<a href="mailto:hmac-ripemd160@openssh.com">hmac-ripemd160@openssh.com</a>', 'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1', 'hmac-ripemd1<br>
60', '<a href="mailto:hmac-ripemd160@openssh.com">hmac-ripemd160@openssh.com</a>', 'hmac-sha1-96', 'hmac-md5-96'] client compress:['none', 'zlib'] server compress:['none', 'zlib'] client la<br>
<br><br>However I am not sure if this problem is actually solved in version 1.7.1 <br>Please guide.<br><br><br>-- <br>Thanx & Regards,<br>Deepak Rokade<br><br>Do what u Enjoy &<br> Enjoy what u Do...........