Below is the summary of a capture from Wireshark. The session starts
out correctly, but the server never sends its bannder, nor does it
close the connection, and the libssh2 client is then hung.
1 0.000000 10.1.10.70 server.ip SSH
Encrypted request packet len=1
2 0.049873 server.ip 10.1.10.70 TCP
ssh > 3934 [ACK] Seq=0 Ack=1 Win=65502 Len=0
3 5.801573 10.1.10.70 server.ip TCP
3952 > ssh [SYN] Seq=0 Len=0 MSS=1460
4 5.852643 server.ip 10.1.10.70 TCP
ssh > 3952 [SYN, ACK] Seq=0 Ack=1 Win=16384 Len=0 MSS=1380
5 5.852715 10.1.10.70 server.ip TCP
3952 > ssh [ACK] Seq=1 Ack=1 Win=65535 Len=0
6 5.853314 10.1.10.70 server.ip SSH
Client Protocol: SSH-2.0-libssh2_0.19.0-20080825\r
7 6.139575 server.ip 10.1.10.70 TCP
ssh > 3952 [ACK] Seq=1 Ack=34 Win=65502 Len=0
The call to recv in libssh2_banner_receive is not returning. I'm
using libssh2 from libcurl, so I thought that the socket would be
non-blocking. I also tried it with the libssh2 sftp_nonblock example
and had the same result. ProcessExplorer shows this for the stack
thread:
0 ntkrnlpa.exe+0x6e77b
1 ntkrnlpa.exe+0x2bf4a
2 ntkrnlpa.exe+0x2c82c
3 ntkrnlpa.exe+0xe8440
4 ntkrnlpa.exe+0x6a3fc
5 ntdll.dll!KiFastSystemCallRet
6 mswsock.dll+0x57c9
7 WS2_32.DLL!recv+0x6f
8 libssh2.dll!libssh2_scp_send_ex+0x12b4
9 libssh2.dll!libssh2_session_startup+0x2f5
10 sftp_nonblock.exe+0x14ca
11 sftp_nonblock.exe+0x124b
12 sftp_nonblock.exe+0x1298
13 kernel32.dll!RegisterWaitForInputIdle+0x49
I'm running libssh2 0.19.0-20081105 compiled with msys/mingw on xp.
Any thoughts?
Eric
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
libssh2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libssh2-devel