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&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; REKEY_PACKETS = pow(2, 20)<br>&nbsp;&nbsp;&nbsp; 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&nbsp;&nbsp; paramiko.transport: Switch to new keys ...<br>DEB [20080315-18:23:00.467] thr=6&nbsp;&nbsp; paramiko.transport: Rekeying (hit 91 packets, 1049340 bytes received)<br>
DEB [20080315-18:23:00.571] thr=6&nbsp;&nbsp; paramiko.transport: kex algos:[&#39;diffie-hellman-group-exchange-sha1&#39;, &#39;diffie-hellman-group1-sha1&#39;] server<br>&nbsp;key:[&#39;ssh-rsa&#39;, &#39;ssh-dss&#39;] client encrypt:[&#39;aes128-cbc&#39;, &#39;3des-cbc&#39;, &#39;blowfish-cbc&#39;, &#39;cast128-cbc&#39;, &#39;arcfour&#39;, &#39;aes192-cbc&#39;, &#39;aes256-cbc&#39;, &#39;<br>
<a href="mailto:rijndael-cbc@lysator.liu.se">rijndael-cbc@lysator.liu.se</a>&#39;, &#39;aes128-ctr&#39;, &#39;aes192-ctr&#39;, &#39;aes256-ctr&#39;] server encrypt:[&#39;aes128-cbc&#39;, &#39;3des-cbc&#39;, &#39;blowfish-cbc&#39;, &#39;cast128-cb<br>
c&#39;, &#39;arcfour&#39;, &#39;aes192-cbc&#39;, &#39;aes256-cbc&#39;, &#39;<a href="mailto:rijndael-cbc@lysator.liu.se">rijndael-cbc@lysator.liu.se</a>&#39;, &#39;aes128-ctr&#39;, &#39;aes192-ctr&#39;, &#39;aes256-ctr&#39;] client mac:[&#39;hmac-md5&#39;, &#39;<br>
hmac-sha1&#39;, &#39;hmac-ripemd160&#39;, &#39;<a href="mailto:hmac-ripemd160@openssh.com">hmac-ripemd160@openssh.com</a>&#39;, &#39;hmac-sha1-96&#39;, &#39;hmac-md5-96&#39;] server mac:[&#39;hmac-md5&#39;, &#39;hmac-sha1&#39;, &#39;hmac-ripemd1<br>
60&#39;, &#39;<a href="mailto:hmac-ripemd160@openssh.com">hmac-ripemd160@openssh.com</a>&#39;, &#39;hmac-sha1-96&#39;, &#39;hmac-md5-96&#39;] client compress:[&#39;none&#39;, &#39;zlib&#39;] server compress:[&#39;none&#39;, &#39;zlib&#39;] 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 &amp; Regards,<br>Deepak Rokade<br><br>Do what u Enjoy &amp;<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Enjoy what u Do...........