TScSFTPServer: suspend afer send quit command by sftp-client
Posted: Fri 06 Dec 2013 10:21
Hello,
I use your SecureBridge-sourcecode-edition 6.1. In order to test your SFTP-Server-component I created a small project. On main form there are only 3 components:
TScSFTPServer, TScSSHServer, TScFileStorage. All settings are set by IDE. In FormCreate I only activate TScSSHServer: ScSSHServer1.Active := True;
I tested with linux and putty sftp-client. Login works but after I execute quit-command both sftp-clients suspend (wait for something). In code ScSSH2Channel.ProcessPacket line 511 I see that the client sends a eof (SSH_MSG_CHANNEL_EOF). After that nothing happens. I inserted after line "Close; Dispose;" then it works bit is that OK? I guess that the component waits for SSH_MSG_CHANNEL_CLOSE to close the channel but this message doesn't occur. Or could it be that the clients waits for a response after SSH_MSG_CHANNEL_EOF and then the sftp-clients send SSH_MSG_CHANNEL_CLOSE?
I use your SecureBridge-sourcecode-edition 6.1. In order to test your SFTP-Server-component I created a small project. On main form there are only 3 components:
TScSFTPServer, TScSSHServer, TScFileStorage. All settings are set by IDE. In FormCreate I only activate TScSSHServer: ScSSHServer1.Active := True;
I tested with linux and putty sftp-client. Login works but after I execute quit-command both sftp-clients suspend (wait for something). In code ScSSH2Channel.ProcessPacket line 511 I see that the client sends a eof (SSH_MSG_CHANNEL_EOF). After that nothing happens. I inserted after line "Close; Dispose;" then it works bit is that OK? I guess that the component waits for SSH_MSG_CHANNEL_CLOSE to close the channel but this message doesn't occur. Or could it be that the clients waits for a response after SSH_MSG_CHANNEL_EOF and then the sftp-clients send SSH_MSG_CHANNEL_CLOSE?