[Twisted-Python] Dealing with an intermittent PB server

Dave Cook daverz at gmail.com
Thu Feb 17 17:51:28 EST 2005

On Thu, 17 Feb 2005 01:05:22 +0000, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
>   def connect(self):
>     f = pb.PBClientFactory()
>     reactor.connectTCP(host, port, f)
>     f.getRootObject().addCallbacks(self.connect_ok, self.connect_fail)

Maybe I should do it the way you do here and not create the client
factory until I need it rather than at the start of my application. 
How costly is it to create the client factories each time?
Dave Cook

More information about the Twisted-Python mailing list