def access_register(proxy=None, timeout_check=True):
i = 0
while i < _max_register_count:
try:
if timeout_check:
TimeoutTracker(try_register)(proxy=proxy)
else:
print(try_register(proxy=proxy))
i += 1
print("SUCCESS %d" % i)
except Exception as e:
print(str(e) + 'Error , retrying')
finally:
for p in multiprocessing.active_children():
p.terminate()
gc.collect()
评论列表
文章目录