#159: libssh2 takes long time to disconnect from CoreFTP's SFTP service
-----------------------------------------+----------------------------------
Reporter: qxu | Owner: stuge
Type: defect | Status: accepted
Priority: normal | Milestone: 1.2.5
Component: protocol | Version: 1.2.4
Keywords: coreftp server idle timeout | Blocking:
Blockedby: |
-----------------------------------------+----------------------------------
Comment(by stuge):
Comparing libssh2 behavior with OpenSSH I discovered that libssh2 sends
SSH_MSG_CHANNEL_CLOSE without sending SSH_MSG_CHANNEL_EOF and waiting for
the other end to also send SSH_MSG_CHANNEL_EOF. RFC4254 explicitly allows
sending SSH_MSG_CHANNEL_CLOSE without first sending SSH_MSG_CHANNEL_EOF,
but maybe CoreFTP does not support that part of the RFC.
Please apply the patch that I just attached to this ticket and test if it
solves the problem.
-- Ticket URL: <http://libssh2.stuge.se/ticket/159#comment:2> libssh2 <http://libssh2.stuge.se/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2010-02-25