From 57d9e8df2a865e9de4ff76ee7c0272215786b97e Mon Sep 17 00:00:00 2001 From: Gabes Jean Date: Mon, 27 Dec 2010 13:28:49 +0100 Subject: [PATCH] =?utf8?q?Fix:=20(Gr=C3=A9gory=20Starck)=20Hard=20coded=20?= =?utf8?q?timeout=20in=20satellite=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- shinken/satellitelink.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shinken/satellitelink.py b/shinken/satellitelink.py index 137bcce..aae9129 100644 --- a/shinken/satellitelink.py +++ b/shinken/satellitelink.py @@ -70,7 +70,7 @@ class SatelliteLink(Item): def create_connexion(self): self.uri = shinken.pyro_wrapper.create_uri(self.address, self.port, "ForArbiter") self.con = shinken.pyro_wrapper.getProxy(self.uri) - shinken.pyro_wrapper.set_timeout(self.con, 5) + shinken.pyro_wrapper.set_timeout(self.con, self.timeout) def put_conf(self, conf): @@ -79,9 +79,9 @@ class SatelliteLink(Item): #print "Connexion is OK, now we put conf", conf #print "Try to put conf:", conf try: - shinken.pyro_wrapper.set_timeout(self.con, 120) + shinken.pyro_wrapper.set_timeout(self.con, self.data_timeout) self.con.put_conf(conf) - shinken.pyro_wrapper.set_timeout(self.con, 5) + shinken.pyro_wrapper.set_timeout(self.con, self.timeout) return True except Pyro.errors.URIError , exp: self.con = None -- 2.11.4.GIT