remote connections timeout after 30 seconds
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 4 Aug 2011 20:17:14 +0000 (16:17 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Thu, 4 Aug 2011 20:17:14 +0000 (16:17 -0400)
sfa/managers/slice_manager_pl.py
sfa/server/interface.py

index f23d4d8..7ad48f9 100644 (file)
@@ -394,7 +394,7 @@ def get_ticket(api, xrn, creds, rspec, users):
                     continue
                 # send the request to this address 
                 url = target_aggs[0]['url']
-                server = xmlrpcprotocol.get_server(url, api.key_file, api.cert_file)
+                server = xmlrpcprotocol.get_server(url, api.key_file, api.cert_file, timeout=30)
                 # aggregate found, no need to keep looping
                 break   
         if server is None:
index f37331a..52df22b 100644 (file)
@@ -99,6 +99,6 @@ class Interfaces(dict):
                 client_type = 'geniclientlight'
                 connections[hrn] = GeniClientLight(url, self.api.key_file, self.api.cert_file) 
             else:
-                connections[interface['hrn']] = xmlrpcprotocol.get_server(url, self.api.key_file, self.api.cert_file)
+                connections[interface['hrn']] = xmlrpcprotocol.get_server(url, self.api.key_file, self.api.cert_file, timeout=30)
 
         return connections