def connectionMade(self): QueryProtocol.connectionMade(self) if self.factory.rpc_timeout: self.setTimeout(self.factory.rpc_timeout.get())