Re: [Twisted-Python] Retry: Conch Issues

2020-09-25 Thread Robert DiFalco
My work around for the twisted/conch bug if anyone is interested. FileTransferHandler was not handling closed connections properly. Btw, this is with release version 20.3.0, which seems to be the latest version. However, if I look in the Twisted repo it looks like someone is trying to address this

Re: [Twisted-Python] Retry: Conch Issues

2020-09-25 Thread Robert DiFalco
I agree it's a bug in conch and I believe my repo shows a reproducible example. Run the test, it never completes because the deferred from `makeDirectory` never fires. . On Fri, Sep 25, 2020 at 3:41 AM Jean-Paul Calderone < exar...@twistedmatrix.com> wrote: > On Thu, Sep 24, 2020 at 8:54 PM Rober

Re: [Twisted-Python] Retry: Conch Issues

2020-09-25 Thread Jean-Paul Calderone
On Thu, Sep 24, 2020 at 8:54 PM Robert DiFalco wrote: > Why exactly is makeDirectory not firing any callbacks or errbacks and what > can I add at the Factory level to make it do so? > class MySSHClientFactory(SSHClientFactory): > def clientConnectionLost(self, connector, reason): > s

Re: [Twisted-Python] Retry: Conch Issues

2020-09-24 Thread Robert DiFalco
Thank you so much Aldi! Yes there are so many little decoupled pieces it's difficult to figre out how to use them in concert. .Let's leave aside the reconnecting option for a minute and just talk about how to percolate errors up. Because currently I want to be able to always return from a FileTrans

Re: [Twisted-Python] Retry: Conch Issues

2020-09-24 Thread Adi Roiban
Hi On Fri, 25 Sep 2020 at 00:15, Robert DiFalco wrote: > I am having troubles with Conch. I've been able to reproduce them in a > unit test and all the code is here along with requirements.txt: >https://github.com/radifalco/conch_issues > > I'm trying to reuse my connection, but if it is idl

[Twisted-Python] Retry: Conch Issues

2020-09-24 Thread Robert DiFalco
I am having troubles with Conch. I've been able to reproduce them in a unit test and all the code is here along with requirements.txt: https://github.com/radifalco/conch_issues I'm trying to reuse my connection, but if it is idle too long the server shuts it down. What I don't understand is why