Esempio n. 1
0
 def run(self):
   iopoll = IOPoll()
   with iopoll.loop():
     client = RaleighClient()
     client.REPLY_MAX_WAIT = 20
     with client.connection(iopoll, self.RALEIGH_HOST, self.RALEIGH_PORT):
       exception = None
       nrequests = 0
       st = time()
       try:
         nrequests, exception = self.execute(client)
       except Exception as e:
         exception = e
       finally:
         et = time()
       return (et - st, nrequests, exception)