code: def run(self):
          
          logger = getLogger('zinnia.ping.directory')
          socket.setdefaulttimeout(self.timeout)
          for entry in self.entries:
              reply = self.ping_entry(entry)
              self.results.append(reply)
              logger.info('%s : %s', self.server_name, reply['message'])
          socket.setdefaulttimeout(None)
docs: Ping entries to a directory in a thread.