Re: [Twisted-Python] iConnector factory not what expected

2012-06-25 Thread Martin
On 15/06/12 14:15, exar...@twistedmatrix.com wrote: > On 08:50 am, mar...@webscio.net wrote: >> On 15/06/12 01:40, exar...@twistedmatrix.com wrote: >>> On 14 Jun, 03:34 pm, mar...@webscio.net wrote: Hi again, I've a bit of code that does the following: f = MyReconnectingCli

Re: [Twisted-Python] iConnector factory not what expected

2012-06-15 Thread Itamar Turner-Trauring
On 06/15/2012 12:46 PM, Martin wrote: > What happens if I create two SSL connections with the same factory f? > Would calling "stopTrying" on that f then affect both connections? Or > just the last? I guess I can simply test this out myself, it's just > slightly weird to me. :) It's better to have

Re: [Twisted-Python] iConnector factory not what expected

2012-06-15 Thread Martin
On 15/06/12 14:15, exar...@twistedmatrix.com wrote: > On 08:50 am, mar...@webscio.net wrote: >> On 15/06/12 01:40, exar...@twistedmatrix.com wrote: >>> On 14 Jun, 03:34 pm, mar...@webscio.net wrote: Hi again, I've a bit of code that does the following: f = MyReconnectingCli

Re: [Twisted-Python] iConnector factory not what expected

2012-06-15 Thread exarkun
On 08:50 am, mar...@webscio.net wrote: >On 15/06/12 01:40, exar...@twistedmatrix.com wrote: >>On 14 Jun, 03:34 pm, mar...@webscio.net wrote: >>>Hi again, >>> >>>I've a bit of code that does the following: >>> >>>f = MyReconnectingClientFactory() >>>iConn = reactor.connectSSL(url, port, f, ssl.Clien

Re: [Twisted-Python] iConnector factory not what expected

2012-06-15 Thread Martin
On 15/06/12 01:40, exar...@twistedmatrix.com wrote: > On 14 Jun, 03:34 pm, mar...@webscio.net wrote: >> Hi again, >> >> I've a bit of code that does the following: >> >> f = MyReconnectingClientFactory() >> iConn = reactor.connectSSL(url, port, f, ssl.ClientContextFactory()) >> >> now I would expec

Re: [Twisted-Python] iConnector factory not what expected

2012-06-14 Thread exarkun
On 14 Jun, 03:34 pm, mar...@webscio.net wrote: >Hi again, > >I've a bit of code that does the following: > >f = MyReconnectingClientFactory() >iConn = reactor.connectSSL(url, port, f, ssl.ClientContextFactory()) > >now I would expect that iConn.factory would be my f, but as it turns >out >it's an

[Twisted-Python] iConnector factory not what expected

2012-06-14 Thread Martin
Hi again, I've a bit of code that does the following: f = MyReconnectingClientFactory() iConn = reactor.connectSSL(url, port, f, ssl.ClientContextFactory()) now I would expect that iConn.factory would be my f, but as it turns out it's an instance of some TLSMemoryBIOFactory.. Why is that so? A