Subject: Re: [libssh2] #159: libssh2 takes long time to disconnect from CoreFTP's SFTP service

Re: [libssh2] #159: libssh2 takes long time to disconnect from CoreFTP's SFTP service

From: libssh2 Trac <trac_at_libssh2.stuge.se>
Date: Thu, 25 Feb 2010 17:47:52 -0000

#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-devel
Received on 2010-02-25