Subject: Sporadic dead-lock LibSSH2

Sporadic dead-lock LibSSH2

From: Sebastien Fricker <Sebastien.Fricker_at_ipetronik.com>
Date: Mon, 14 Mar 2011 18:16:40 +0100

Hi,
I have actually a strange sporadic dead-lock from LibSSH2:
in some situtations (unclear why, but extremely rare), libssh2 stops to
transfer, and nothing happened:
no more data are transferred, no timeout, ...
I tried to simulate this behaviour, by cutting the down-link or up-link
of the communication or by facking the return value
of recv/send. In all cases, libssh2 ends with a timeout after 3 Minutes
(which is correct).

For one of this situation, It was possible to record the libssh2 traces
(see below) and I could only see that
libssh2 sends a SSH packet and did not get an answer.
My question: if the SFTP server sends a keep-alive, could this be the
reason why we never got a receive timeout and so never return from a
libssh2_sftp_write() in this case?

Regards,
Sébastien

Traces:
10.03.2011 21:25:05 D [libssh2] 11243.964481 Socket: Sent 100/100 bytes
at 47F0802
10.03.2011 21:25:05 D [libssh2] 11243.029666 Socket: Recved 84/35000
bytes to 46197890+
10.03.2011 21:25:05 D [libssh2] 11244.232215 Socket: Sent 36/36 bytes
at 47F09BF
10.03.2011 21:25:05 D [libssh2] 11244.297401 Socket: Sent 36/36 bytes
at 47F09BF
10.03.2011 21:25:05 D [libssh2] 11244.362336 Socket: Recved 104/35000
bytes to 46197890+
10.03.2011 21:25:05 D [libssh2] 11244.427522 Socket: Sent 52/52 bytes
at 47F0938

-- 
------------------------------------------------------------
Ipetronik GmbH & Co.KG
Jaegerweg 1
D-76532 Baden-Baden
 
Phone-No. +49 - (0)7221/9922-467
Fax-No. +49 - (0)7221/9922-153
 
mailto: sebastien.fricker_at_ipetronik.com
web: http://www.ipetronik.com 
 
------------------------------------------------------------
Kommanditgesellschaft mit Sitz in Baden-Baden, Registergericht HRA
Nr.201313
Persoenlich haftende Gesellschaft ist die IPETRONIK Verwaltungs GmbH 
mit Sitz in Baden-Baden, Registergericht Mannheim HRB Nr.202089, 
Geschäftsführer: J.Abromeit, E.Rudolf, A. Wocke
-------------------------------------------------------------
 
 
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-03-14