[Twisted-Python] Hanging SFTP client operations on server disconnection

2017-02-02 Thread Adi Roiban
Hi, t.conch.ssh.filetransfer.FileTransferClient._sendRequest keeps a mapping with active SFTP requests in self.openRequests The self.openRequests is only updated when the server is responding for that request. They are not cleared/cancelled on connection lost. In the case in which the client se

[Twisted-Python] conch.ssh.SSHFactory publicKeys and getPublicKeys

2017-02-02 Thread Adi Roiban
Hi, I am writing to ask about the reason why t.conch.ssh.Factory has both the getPublicKeys and getPrivateKeys methods ? The public keys should be string while private keys should be twisted.conch.ssh.keys.Key Based on my understanding if you have a private key object you can extract the public

[Twisted-Python] How to restart Twisted service in-process

2017-02-02 Thread Роман Мещеряков
Hello everyone! I wrote Twisted-based TCP server which is capable of running in several relatively different modes. When mode switch is needed, I would like the server to restart itself by some means, for it to read new mode from configuration file and create corresponding implementation. Also I wa