修改BUG:http请求过多导致服务器防火墙拒绝连接

This commit is contained in:
Qiea
2024-12-22 21:32:17 +08:00
parent f73b40a979
commit b8abc176da
4 changed files with 54 additions and 33 deletions

View File

@@ -17,16 +17,12 @@ if __name__ == '__main__':
pool = MySQLConnectionPool()
Thread = FindThread(TargetImageHash, pool)
Thread.start()
os._exit(0)
elif type == 2:
while baseArr <= TargetRange[1]:
Thread = ByNetFindThread(TargetImageHash, baseArr)
Thread.start()
baseArr += 1
sleep(1)
os._exit(0)
elif type == 3:
pool = MySQLConnectionPool()
@@ -34,4 +30,3 @@ if __name__ == '__main__':
Thread = UploadThread(baseArr, pool)
Thread.start()
baseArr += 1
os._exit(0)