def __init__(self, myid, tracker, hash, interval, peers, timeout,
                     rawserver, disallow, isdisallowed):
        self.tracker = tracker
        self.interval = interval
        self.hash = hash
        self.operatinginterval = interval
        self.peers = peers
        self.rawserver = rawserver
        self.disallow = disallow
        self.isdisallowed = isdisallowed
        self.active = True
        self.busy = False
        self.errors = 0
        self.rejected = 0
        self.trackererror = False
        self.peerlists = []
        cfg = { 'min_peers': peers,
                'max_initiate': peers,
                'rerequest_interval': interval,
                'http_timeout': timeout }
        self.rerequester = Rerequester( 0, myid, hash, [[tracker]], cfg,
            rawserver.add_task, rawserver.add_task, self.errorfunc, excfunc,
            self.addtolist, R_0, R_1, R_0, R_0, R_0, R_0,
            Event() )

        if self.isactive():
            rawserver.add_task(self.refresh, randrange(int(self.interval/10), self.interval))
                                        # stagger announces
dataset/ETHPy150Open Cclleemm/FriendlyTorrent/src/tornado/BitTornado/BT1/T2T.py/T2TConnection.__init__/original