Subject: Re: libssh2 takes long time to disconnect from CoreFTP's SFTP service

Re: libssh2 takes long time to disconnect from CoreFTP's SFTP service

From: Peter Stuge <peter_at_stuge.se>
Date: Wed, 17 Feb 2010 12:06:53 +0100

Hello,

Xu, Qiang (FXSGSC) wrote:
> Sure. I've downloaded 1.2.4 release and compiled it successfully
> with debug option enabled.

Great! This really helps.

> The log file is quite big, about 82KB in size. So I can only zip it
> and attach to the mail. The log is captured with the command
> "./sftpdir 13.xxx.xxx.xxx <user> <pass> /". And before this command
> and after it, I typed "date" command to indicate time difference.

Thanks!

> Please note the jump from 1.229925 to 605.366201.

Your snippet shows that libssh2 has a problem when disconnecting.

It gets stuck just waiting and after a 10 minute delay the server
(not libssh2) closes the connection. A timeout is probably configured
in the server.

Your debug log is very valuable to find the problem within libssh2,
but I'm afraid that this problem will require some time to solve
because the protocol state within libssh2 may need to be traced
throughout the entire log in order to find the problem.

It would be good to have this in the bug tracker so that it is not
lost. Could you create a ticket for it? The component should probably
be "protocol" even though the problem is only seen with SFTP so far.

> Another word: FileZilla is using PSFTP.exe to do SFTP transactions,
> and it is fast. Hope this helps.

Yes that's right! There is no doubt that this is a problem in libssh2.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-02-17